File tree Expand file tree Collapse file tree 5 files changed +74
-6
lines changed Expand file tree Collapse file tree 5 files changed +74
-6
lines changed Original file line number Diff line number Diff line change 1
1
New entries should be added at the top
2
2
3
+ 2004-04-17 Added support for two scales on the "same axes" with tick
4
+ different ticking and labeling left right or top bottom.
5
+ See examples/two_scales.py - JDH
6
+
3
7
2004-04-17 Added default dirs as list rather than single dir in
4
8
setupext.py - JDH
5
9
6
10
2004-04-16 Fixed wx exception swallowing bug (and there was much
7
11
rejoicing!) - JDH
8
12
9
- 2004-04-16 Added new ti huncker locator a formatter, fixed default font
13
+ 2004-04-16 Added new ticker locator a formatter, fixed default font
10
14
return - JDH
11
15
12
16
2004-04-16 Added get_name method to FontProperties class. Fixed font lookup
Original file line number Diff line number Diff line change 222
222
223
223
-- DONE 2004-02-17 make legend attributes accessible
224
224
225
- -- decreasing axes - James Boyle <boyle5@llnl.gov>
225
+ -- DONE decreasing axes - James Boyle <boyle5@llnl.gov>
226
226
227
227
228
228
-- check out Helge's contour
242
242
243
243
-- DONE 2004-02-25 fix setup.py to build ft2
244
244
245
- -- TkAgg resize (test on win32)
245
+ -- DONE TkAgg resize (test on win32)
246
246
247
247
-- DONE TkAgg interactive on win32
248
248
258
258
259
259
-- DONE - (Todd updated docs) - python2.2 no default tkinter
260
260
261
- -- check out wx
261
+ -- DONE check out wx
262
262
263
263
-- DONE 2004-03-02 - fix ft2font clipping on agg
264
264
290
290
291
291
-- add pie charts
292
292
293
- -- support fontdicts, with deprecation as necessary
293
+ -- DONE support fontdicts, with deprecation as necessary
294
294
295
295
-- move text layout to front end and support newlines with rotation.
296
296
310
310
311
311
-- ps backend fails alignment test
312
312
313
- -- ps backend is slow! parsing afm files!
313
+ -- ps backend is slow! Almost all of this is eaten by parsing afm
314
+ files
315
+
316
+ -- decreasing log axes needs fix
Original file line number Diff line number Diff line change 17
17
'barchart_demo.py' ,
18
18
'color_demo.py' ,
19
19
'csd_demo.py' ,
20
+ 'date_demo1.py' ,
21
+ 'date_demo2.py' ,
20
22
'fill_demo.py' ,
21
23
'figtext.py' ,
22
24
'histogram_demo.py' ,
23
25
'image_demo.py' ,
24
26
'image_demo2.py' ,
27
+ 'invert_axes.py' ,
25
28
'legend_demo.py' ,
26
29
'legend_demo2.py' ,
27
30
'line_styles.py' ,
28
31
'log_demo.py' ,
29
32
'log_test.py' ,
30
33
'mathtext_demo.py' ,
31
34
'mri_with_eeg.py' ,
35
+ 'major_minor_demo1.py' ,
36
+ 'major_minor_demo2.py' ,
32
37
'multiple_figs_demo.py' ,
33
38
'pcolor_demo.py' ,
34
39
'pcolor_demo2.py' ,
Original file line number Diff line number Diff line change
1
+ """
2
+
3
+ You can use decreasing axes by flipping the normal order of the axis
4
+ limits
5
+
6
+ """
7
+ from matplotlib .matlab import *
8
+
9
+ t = arange (0.01 , 5.0 , 0.01 )
10
+ s = exp (- t )
11
+ plot (t , s )
12
+
13
+ set (gca (), 'xlim' , [5 ,0 ]) # decreasing time
14
+
15
+ xlabel ('decreasing time (s)' )
16
+ ylabel ('voltage (mV)' )
17
+ title ('Should be growing...' )
18
+ grid (True )
19
+
20
+ show ()
Original file line number Diff line number Diff line change
1
+ """
2
+
3
+ Demonstrate how to do two plots on the same axes with different left
4
+ right scales.
5
+
6
+
7
+ The trick is to use *2 different axes*. Turn the axes rectangular
8
+ frame off on the 2nd axes to keep it from obscuring the first.
9
+ Manually set the tick locs and labels as desired. You can use
10
+ separate matplotlib.ticker formatters and locators as desired since
11
+ the two axes are independent
12
+
13
+ To do the same with different x scales, use the xaxis instance and
14
+ call tick_bottom and tick_top in place of tick_left and tick_right
15
+
16
+ """
17
+
18
+ from matplotlib .matlab import *
19
+
20
+ ax1 = subplot (111 )
21
+ t = arange (0.0 , 10.0 , 0.01 )
22
+ s1 = exp (t )
23
+ plot (t , s1 , 'b-' )
24
+ ax1 .yaxis .tick_left ()
25
+
26
+
27
+ # turn off the 2nd axes rectangle with frameon kwarg
28
+ ax2 = subplot (111 , frameon = False )
29
+ s2 = sin (2 * pi * t )
30
+ plot (t , s2 , 'r.' )
31
+ ax2 .yaxis .tick_right ()
32
+
33
+
34
+ xlabel ('time (s)' )
35
+
36
+ show ()
You can’t perform that action at this time.
0 commit comments