mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-01 03:00:13 -04:00
PGF plots are done, not perfect but OK for now.
This commit is contained in:
@@ -95,12 +95,20 @@ class SolutionDataWriter(object):
|
||||
|
||||
matplotlib.rcParams['axes.formatter.useoffset'] = False
|
||||
|
||||
# For standard report generation
|
||||
self.ext = "pdf"
|
||||
self.usebp = False
|
||||
self.ispage = True # Do you want a page or a figure?
|
||||
self.isportrait = True
|
||||
self.resolveRef = True # Resolve references and print text
|
||||
|
||||
# Latex document mode
|
||||
#self.ext = "pgf"
|
||||
#self.usebp = True
|
||||
#self.ispage = False # Do you want a page or a figure?
|
||||
#self.isportrait = True
|
||||
#self.resolveRef = False # Resolve references and print text
|
||||
|
||||
if self.ext=="pgf" or matplotlib.rcParams['text.usetex']:
|
||||
self.usetex = True
|
||||
matplotlib.rcParams['text.usetex'] = True
|
||||
@@ -150,9 +158,9 @@ class SolutionDataWriter(object):
|
||||
if self.usebp:
|
||||
from jopy.dataPlotters import BasePlotter
|
||||
self.bp = BasePlotter()
|
||||
ccycle = self.bp.getColourCycle(length=4)
|
||||
ccycle.next() # skip the first one
|
||||
ccycle.next() # skip the first one
|
||||
ccycle = self.bp.getColourCycle(length=2)
|
||||
#ccycle.next() # skip the first one
|
||||
#ccycle.next() # skip the first one
|
||||
self.secondaryColour = ccycle.next()
|
||||
self.primaryColour = ccycle.next()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user