Rev | Line | |
---|
[17986] | 1 | Index: ../trunk-jpl/src/m/plot/plotmodel.py
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/plot/plotmodel.py (revision 17918)
|
---|
| 4 | +++ ../trunk-jpl/src/m/plot/plotmodel.py (revision 17919)
|
---|
| 5 | @@ -53,7 +53,7 @@
|
---|
| 6 | #Go through plots
|
---|
| 7 | if numberofplots:
|
---|
| 8 |
|
---|
| 9 | - if not hold: # TODO need to also check whether figurenumber is a new plot so that old plots are not mistakenly cleared
|
---|
| 10 | + if plt.fignum_exists(figurenumber):
|
---|
| 11 | plt.cla()
|
---|
| 12 |
|
---|
| 13 | #if figsize specified
|
---|
| 14 | Index: ../trunk-jpl/src/m/plot/applyoptions.py
|
---|
| 15 | ===================================================================
|
---|
| 16 | --- ../trunk-jpl/src/m/plot/applyoptions.py (revision 17918)
|
---|
| 17 | +++ ../trunk-jpl/src/m/plot/applyoptions.py (revision 17919)
|
---|
| 18 | @@ -106,6 +106,10 @@
|
---|
| 19 | #}}}
|
---|
| 20 |
|
---|
| 21 | #xticklabels,yticklabels,zticklabels {{{
|
---|
| 22 | + if options.getfieldvalue('ticklabels','off')=='off' or options.getfieldvalue('ticklabels',0)==0:
|
---|
| 23 | + options.addfielddefault('xticklabels',[])
|
---|
| 24 | + options.addfielddefault('yticklabels',[])
|
---|
| 25 | + # TODO check if ax has a z-axis (e.g. is 3D)
|
---|
| 26 | if options.exist('xticklabels'):
|
---|
| 27 | xticklabels=options.getfieldvalue('xticklabels')
|
---|
| 28 | ax.set_xticklabels(xticklabels)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.