surfinpy.pvt_plot

This module is designed to generate a temperature vs pressue phase diagram.

class surfinpy.pvt_plot.PVTPlot(x, y, z)[source]

Bases: object

Class for plotting of temperature vs pressure phase diagrams.

Parameters:
  • x (array like) – x axis
  • y (array like) – y axis
  • z (array like) – two dimensional array of phases
plot(output='Phase.png', colourmap='RdBu', set_style='ggplot', atmospheric_conditions=[1.0, 298.15])[source]

plots phase diagram

Parameters:
  • output (str) – output filename
  • colourmap (str) – colourmap for phase diagram
  • atmospheric_conditions (list) – location of bars showing atmospheric conditions