PGF plots are done, not perfect but OK for now.

This commit is contained in:
Jorrit Wronski
2015-02-09 12:00:59 +01:00
parent d6a360d818
commit 4c901ac5a2

View File

@@ -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: