Skip to content
Snippets Groups Projects
Commit 47d35b51 authored by Julian Lenz's avatar Julian Lenz
Browse files

Minor bug fixes and additions.

parent 58dfaa45
No related branches found
No related tags found
No related merge requests found
......@@ -792,6 +792,8 @@ class brokenAxis:
par.pop('uLim',None)
return brokenAxis(aLowTwin,aUpTwin,twinx=True,**par,**kwargs)
def heuristicRange(loc,lim,pos):
raise Exception('Not implemented yet!')
def alignTicks(a1,a2,whichTicks='major',whichAxis='y',ranges='flex'):
'''
......
......@@ -23,7 +23,7 @@ from .aux import iterTest
markers=['o','s','^','v','D','p']
colors=['#1f77b4','#ff7f0e','#2ca02c','#d62728','#9467bd','#8c564b','#e377c2',
'#7f7f7f','#bcbd22','#17becf']
linestyles=['-','--',':','-.',(0, (5, 10)),(0, (3, 5, 1, 5, 1, 5)),(0, (1, 1)),(0, (3, 5, 1, 5))]
linestyles=['-','--',':','-.',(0, (3, 2, 1, 2, 1, 2)),(0, (3, 5, 1, 5)),(0, (5, 10)),(0, (3, 5, 1, 5, 1, 5)),(0, (1, 1))]
Fig=[]
ax=[]
......@@ -160,7 +160,8 @@ class FancyAxes(mpl.axes.Axes):
CAUTION: Probably, this does not have the full convenience functionality
of the original plot().
'''
if len(args)==0:
return None
# extract the new kwarg
withLines=kwargs.pop('withLines',True)
if isinstance(withLines,bool):
......@@ -249,6 +250,24 @@ class FancyAxes(mpl.axes.Axes):
def cla(self):
self.resetCyclers()
super().cla()
def getNextStyle(self,which='errorbar'):
if which=='errorbar':
return {
'linestyle':next(self.lCyclerErrorbar),
'marker':next(self.mCyclerErrorbar),
'color':next(self.cCyclerErrorbar),
}
elif which=='plot':
return {
'linestyle':next(self.lCyclerPlot),
'marker':next(self.mCyclerPlot),
'color':next(self.cCyclerPlot),
}
else:
raise Exception()
# register the new Axes subclass as projection in matplotlib such that it can
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment