You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
(4) |
2
(20) |
3
(8) |
4
(10) |
5
(4) |
6
(8) |
7
(4) |
8
(9) |
9
(11) |
10
(12) |
11
(13) |
12
(3) |
13
(17) |
14
(4) |
15
|
16
(10) |
17
(9) |
18
(11) |
19
(4) |
20
(17) |
21
(6) |
22
(9) |
23
(35) |
24
(17) |
25
(9) |
26
(16) |
27
(17) |
28
(14) |
hi everybody, I have been using matplotlib for some months without any problem and I am very happy with it until recently when I upgraded my OS from fedora 6 to fedora 10. everything seems ok except for that when I save a figure in eps format, the quality of the resulting figure is poor and the size in also smaller than what it is supposed to be. Is there anybody to help me with this respect? I appreciate in advance, sean
Davide Lazzati wrote: > I installed atk, gtk2, pango, and cairo from macports. Then I > installed pygobject-2.16.0, pycairo-1.8.2, and pygtk-2.12.1 from the > sources. > > All the installations seemed smooth. > > However, when I import pylab using GTKAgg as a backend, ipython tells > me that there is not pygtk (see below for the whole error message). > > Any insight? > > Davide > Davide: You installed pygtk into macports python - so you have to use macports python to import it. -Jeff > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > > /Users/dlazzat/<ipython console> in <module>() > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/pylab.py > in <module>() > ----> 1 from matplotlib.pylab import * > 2 import matplotlib.pylab > 3 __doc__ = matplotlib.pylab.__doc__ > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/pylab.py > in <module>() > 251 > 252 > --> 253 from matplotlib.pyplot import * > 254 > 255 # provide the recommended module abbrevs in the pylab namespace > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/pyplot.py > in <module>() > 73 > 74 from matplotlib.backends import pylab_setup > ---> 75 new_figure_manager, draw_if_interactive, show = pylab_setup() > 76 > 77 > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/backends/__init__.pyc > in pylab_setup() > 23 backend_name = 'matplotlib.backends.%s'%backend_name.lower() > 24 backend_mod = __import__(backend_name, > ---> 25 globals(),locals(),[backend_name]) > 26 > 27 # Things we pull in from all backends > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_gtkagg.py > in <module>() > 8 from matplotlib.figure import Figure > 9 from matplotlib.backends.backend_agg import FigureCanvasAgg > ---> 10 from matplotlib.backends.backend_gtk import gtk, > FigureManagerGTK, FigureCanvasGTK,\ > 11 show, draw_if_interactive,\ > 12 error_msg_gtk, NavigationToolbar, PIXELS_PER_INCH, > backend_version, \ > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_gtk.py > in <module>() > 9 import pango > 10 except ImportError: > ---> 11 raise ImportError("Gtk* backend requires pygtk to be installed.") > 12 > 13 pygtk_version_required = (2,2,0) > > ImportError: Gtk* backend requires pygtk to be installed. > > > > On Tue, Feb 17, 2009 at 1:11 PM, Jeff Whitaker <js...@fa...> wrote: > >> Davide Lazzati wrote: >> >>> On Mon, Feb 16, 2009 at 8:13 PM, Jeff Whitaker <js...@fa...> wrote: >>> >>> >>>> Davide Lazzati wrote: >>>> >>>> >>>>> Hi, >>>>> >>>>> I'm trying to rum python and matlpotlib on a remote mac host from my >>>>> mac laptop. Both have Mac OS/X 10.5.6 and I'm using ssh -Y ... >>>>> >>>>> However, the graphic window does not appear and, when I run p.show() >>>>> everything gets stuck. >>>>> >>>>> Any insight? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> >>>> Davide: This will only work if you use an X11-based backend (like GTK >>>> Agg), >>>> since only X11 is forwarded over SSH. If you're using a mac-native >>>> backend, >>>> the window is popping up on your mac's screen when you do show(). >>>> >>>> -Jeff >>>> >>>> >>> I've tried to use GTKAgg and it gives me an error message . I'm now >>> running on the MacOSX backend and the graphic window appears on the >>> remote screen (where pyton is running) rather than on the local one >>> (in front of which I am sitting). Any idea on how to open the graphic >>> window with a MacOSX or TkAgg backends on the local screen while >>> python is running remote? >>> >>> Thanks again >>> Davide >>> >>> >>> >>> >>> >> Davide: As I said before, you have to use a backend compiled with X11 >> support if you want to ssh to run matplotlib remotely. You probably don't >> have one, since TkAgg is native OS X and you probably don't have the >> pre-requisites installed to build the GTKAgg backend. You have two choices: >> >> 1) install all the pre-requisites for the GTKAgg backend (don't know what >> they are offhand, but they include at least gtk2, glib and pygtk2). Package >> management systems like fink or macports can help with this. >> >> 2) use the screen-sharing feature of Leopard to remote control your mac >> instead of ssh. Then you will see exactly what is on the screen of the >> remote mac. This will work with any backend, but may be slow and/or >> complicated if you have firewalls in between the macs. >> >> I do this routinely by using the python, pygtk2 and matplotlib packages >> installed by macports, Never had much luck with remote screen sharing >> because of firewall issues. >> >> -Jeff >> >> -- >> Jeffrey S. Whitaker Phone : (303)497-6313 >> Meteorologist FAX : (303)497-6449 >> NOAA/OAR/PSD R/PSD1 Email : Jef...@no... >> 325 Broadway Office : Skaggs Research Cntr 1D-113 >> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg >> >> >> > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a 600ドル discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
I installed atk, gtk2, pango, and cairo from macports. Then I installed pygobject-2.16.0, pycairo-1.8.2, and pygtk-2.12.1 from the sources. All the installations seemed smooth. However, when I import pylab using GTKAgg as a backend, ipython tells me that there is not pygtk (see below for the whole error message). Any insight? Davide --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/dlazzat/<ipython console> in <module>() /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/pylab.py in <module>() ----> 1 from matplotlib.pylab import * 2 import matplotlib.pylab 3 __doc__ = matplotlib.pylab.__doc__ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/pylab.py in <module>() 251 252 --> 253 from matplotlib.pyplot import * 254 255 # provide the recommended module abbrevs in the pylab namespace /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/pyplot.py in <module>() 73 74 from matplotlib.backends import pylab_setup ---> 75 new_figure_manager, draw_if_interactive, show = pylab_setup() 76 77 /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/backends/__init__.pyc in pylab_setup() 23 backend_name = 'matplotlib.backends.%s'%backend_name.lower() 24 backend_mod = __import__(backend_name, ---> 25 globals(),locals(),[backend_name]) 26 27 # Things we pull in from all backends /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_gtkagg.py in <module>() 8 from matplotlib.figure import Figure 9 from matplotlib.backends.backend_agg import FigureCanvasAgg ---> 10 from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\ 11 show, draw_if_interactive,\ 12 error_msg_gtk, NavigationToolbar, PIXELS_PER_INCH, backend_version, \ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_gtk.py in <module>() 9 import pango 10 except ImportError: ---> 11 raise ImportError("Gtk* backend requires pygtk to be installed.") 12 13 pygtk_version_required = (2,2,0) ImportError: Gtk* backend requires pygtk to be installed. On Tue, Feb 17, 2009 at 1:11 PM, Jeff Whitaker <js...@fa...> wrote: > Davide Lazzati wrote: >> >> On Mon, Feb 16, 2009 at 8:13 PM, Jeff Whitaker <js...@fa...> wrote: >> >>> >>> Davide Lazzati wrote: >>> >>>> >>>> Hi, >>>> >>>> I'm trying to rum python and matlpotlib on a remote mac host from my >>>> mac laptop. Both have Mac OS/X 10.5.6 and I'm using ssh -Y ... >>>> >>>> However, the graphic window does not appear and, when I run p.show() >>>> everything gets stuck. >>>> >>>> Any insight? >>>> >>>> Thanks >>>> >>>> >>> >>> Davide: This will only work if you use an X11-based backend (like GTK >>> Agg), >>> since only X11 is forwarded over SSH. If you're using a mac-native >>> backend, >>> the window is popping up on your mac's screen when you do show(). >>> >>> -Jeff >>> >> >> I've tried to use GTKAgg and it gives me an error message . I'm now >> running on the MacOSX backend and the graphic window appears on the >> remote screen (where pyton is running) rather than on the local one >> (in front of which I am sitting). Any idea on how to open the graphic >> window with a MacOSX or TkAgg backends on the local screen while >> python is running remote? >> >> Thanks again >> Davide >> >> >> >> > > Davide: As I said before, you have to use a backend compiled with X11 > support if you want to ssh to run matplotlib remotely. You probably don't > have one, since TkAgg is native OS X and you probably don't have the > pre-requisites installed to build the GTKAgg backend. You have two choices: > > 1) install all the pre-requisites for the GTKAgg backend (don't know what > they are offhand, but they include at least gtk2, glib and pygtk2). Package > management systems like fink or macports can help with this. > > 2) use the screen-sharing feature of Leopard to remote control your mac > instead of ssh. Then you will see exactly what is on the screen of the > remote mac. This will work with any backend, but may be slow and/or > complicated if you have firewalls in between the macs. > > I do this routinely by using the python, pygtk2 and matplotlib packages > installed by macports, Never had much luck with remote screen sharing > because of firewall issues. > > -Jeff > > -- > Jeffrey S. Whitaker Phone : (303)497-6313 > Meteorologist FAX : (303)497-6449 > NOAA/OAR/PSD R/PSD1 Email : Jef...@no... > 325 Broadway Office : Skaggs Research Cntr 1D-113 > Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg > >
On Wed, Feb 18, 2009 at 1:13 PM, Nicholas Stephens < Nic...@un...> wrote: > Hi all, > > I am creating what I would call a simple plot and up until now i have > had no complaints. What I need is the ability to place a realtively > small horizontal rectangle on the x-axis having never previously used > the patches lib's. 8 hours and a slight sense of humour faliure later > I am here. I have tried a number of methods now so i am convinced that > there is a problem with my matplotlib setup or I am doing something > incredably stupid, which I understand from previous experience is the > more likely option :-) > > The problem is that I am also getting no output with simpler examples > I am creating either. So the question is: I would like to add a simple > rectangular box (12,0.01) on a plot similar to that shown below (I > have used an example from ipython as I was trying to simplify things), > so how would somebody else add a rectangular patch? > > > > > from pylab import * > from matplotlib.patches import Rectangle > > a=load('NC_figure4.dat', skiprows=(1)) > b=load('mean_NC_figure4.dat', skiprows=(1)) > > ax=a[:,0] > bx=b[:,0] > # ay1=N:C > ay1=a[:,1] > # ay2=average N:C > by1=b[:,1] > # by1=N:C > ay2=a[:,2] > # by2=average N:C > by2=b[:,2] > # cy=difference > cy=b[:,3] > > xx1 = subplot(111) > t = arange(0.01, 10.0, 0.01) > scatter(ax, ay1, s=10, c='k', marker='o') > scatter(ax, ay2, s=10, c='b', marker='^') > plot (bx,by1,'k-',markersize=8) > plot (bx,by2,'b-',markersize=8) > plot (bx,cy,'r-',markersize=8) > xlim(-2,48) > ylim(0,0.22) > xlabel('Time [h]',fontsize=20) > ylabel('Elemental N:C [gN/gC]',fontsize=20) > text (32,0.06,'Dark treated',color='k',fontsize=20) > text (32,0.13,'Control',color='b',fontsize=20) > text (32,0.03,'Difference',color='r',fontsize=20) > Replace these: > > Rectangle((12,0.01),12,0.01,fill=True, fc='k', visible=True) > show() > With these: rect = Rectangle((12,0.01),12,0.01,fill=True, fc='k', visible=True) xx1.add_patch(rect) show() Rectangle isn't like the pylab function. It is a class that creates a Rectangle patch. You need to then manually add this patch to the axes object (xx1 in your script). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
Hi all, I am creating what I would call a simple plot and up until now i have had no complaints. What I need is the ability to place a realtively small horizontal rectangle on the x-axis having never previously used the patches lib's. 8 hours and a slight sense of humour faliure later I am here. I have tried a number of methods now so i am convinced that there is a problem with my matplotlib setup or I am doing something incredably stupid, which I understand from previous experience is the more likely option :-) The problem is that I am also getting no output with simpler examples I am creating either. So the question is: I would like to add a simple rectangular box (12,0.01) on a plot similar to that shown below (I have used an example from ipython as I was trying to simplify things), so how would somebody else add a rectangular patch? from pylab import * from matplotlib.patches import Rectangle a=load('NC_figure4.dat', skiprows=(1)) b=load('mean_NC_figure4.dat', skiprows=(1)) ax=a[:,0] bx=b[:,0] # ay1=N:C ay1=a[:,1] # ay2=average N:C by1=b[:,1] # by1=N:C ay2=a[:,2] # by2=average N:C by2=b[:,2] # cy=difference cy=b[:,3] xx1 = subplot(111) t = arange(0.01, 10.0, 0.01) scatter(ax, ay1, s=10, c='k', marker='o') scatter(ax, ay2, s=10, c='b', marker='^') plot (bx,by1,'k-',markersize=8) plot (bx,by2,'b-',markersize=8) plot (bx,cy,'r-',markersize=8) xlim(-2,48) ylim(0,0.22) xlabel('Time [h]',fontsize=20) ylabel('Elemental N:C [gN/gC]',fontsize=20) text (32,0.06,'Dark treated',color='k',fontsize=20) text (32,0.13,'Control',color='b',fontsize=20) text (32,0.03,'Difference',color='r',fontsize=20) Rectangle((12,0.01),12,0.01,fill=True, fc='k', visible=True) show()
You are right, this solved my problem. Thank you very much. mh Jae-Joon Lee wrote: > > I believe that it does not actually change the y scale of the first > axes, but simply the > y tickmarks of the second axes gets visible again. It seems to me a > bug, though. Anyhow, I guess inserting following line after > ax2.set_yscale("log") should solve your problem. > > ax2.yaxis.tick_right() > > -JJ > > > On Wed, Feb 18, 2009 at 11:21 AM, marcusantonius > <mar...@st...> wrote: >> >> Hi everybody, >> >> I want to include different data into one plot using a common xaxis but >> two >> yaxis. One of these axis should be log scaled. The problem is, that this >> automatically changes the scaling (or just the ticks) of first yaxis, >> which >> should be linear to log. I assume this is a bug, but its also possible >> that >> I didn't understand how to do it. Here my code: >> >> fig=figure() >> ax1=fig.add_subplot(111) >> p1=ax1.plot(A0,data[:,11]) >> ax1.set_yscale('linear') >> setp(p1,color='blue',ms=3.0,marker='.',alpha=1.,ls='') >> ylim(ymax=1.1) >> xlabel(r'$m_{16} \ (\mathrm{GeV})$') >> ylabel(r'$R$') >> #savefig('p30.pdf') >> ax2=ax1.twinx() >> p2=ax2.plot(A0,data[:,33]) >> ax2.set_yscale('log') >> ax1.set_yscale('linear') >> ylim(ymax=10) >> axhline(y=0.136, xmin=0., xmax=1, color='black',ls=':') >> axhline(y=0.094, xmin=0., xmax=1, color='black',ls=':') >> setp(p2,color='orange',ms=3.0,marker='.',alpha=0.3,ls='') >> savefig('p33.png') >> clf() >> >> Thanks for your help >> -- >> View this message in context: >> http://www.nabble.com/Two-y-axis-with-twinx%2C-only-one-of-them-logscale-tp22082290p22082290.html >> Sent from the matplotlib - users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a 600ドル discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a 600ドル discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/Two-y-axis-with-twinx%2C-only-one-of-them-logscale-tp22082290p22082961.html Sent from the matplotlib - users mailing list archive at Nabble.com.
I believe that it does not actually change the y scale of the first axes, but simply the y tickmarks of the second axes gets visible again. It seems to me a bug, though. Anyhow, I guess inserting following line after ax2.set_yscale("log") should solve your problem. ax2.yaxis.tick_right() -JJ On Wed, Feb 18, 2009 at 11:21 AM, marcusantonius <mar...@st...> wrote: > > Hi everybody, > > I want to include different data into one plot using a common xaxis but two > yaxis. One of these axis should be log scaled. The problem is, that this > automatically changes the scaling (or just the ticks) of first yaxis, which > should be linear to log. I assume this is a bug, but its also possible that > I didn't understand how to do it. Here my code: > > fig=figure() > ax1=fig.add_subplot(111) > p1=ax1.plot(A0,data[:,11]) > ax1.set_yscale('linear') > setp(p1,color='blue',ms=3.0,marker='.',alpha=1.,ls='') > ylim(ymax=1.1) > xlabel(r'$m_{16} \ (\mathrm{GeV})$') > ylabel(r'$R$') > #savefig('p30.pdf') > ax2=ax1.twinx() > p2=ax2.plot(A0,data[:,33]) > ax2.set_yscale('log') > ax1.set_yscale('linear') > ylim(ymax=10) > axhline(y=0.136, xmin=0., xmax=1, color='black',ls=':') > axhline(y=0.094, xmin=0., xmax=1, color='black',ls=':') > setp(p2,color='orange',ms=3.0,marker='.',alpha=0.3,ls='') > savefig('p33.png') > clf() > > Thanks for your help > -- > View this message in context: http://www.nabble.com/Two-y-axis-with-twinx%2C-only-one-of-them-logscale-tp22082290p22082290.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a 600ドル discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Hi everybody, I want to include different data into one plot using a common xaxis but two yaxis. One of these axis should be log scaled. The problem is, that this automatically changes the scaling (or just the ticks) of first yaxis, which should be linear to log. I assume this is a bug, but its also possible that I didn't understand how to do it. Here my code: fig=figure() ax1=fig.add_subplot(111) p1=ax1.plot(A0,data[:,11]) ax1.set_yscale('linear') setp(p1,color='blue',ms=3.0,marker='.',alpha=1.,ls='') ylim(ymax=1.1) xlabel(r'$m_{16} \ (\mathrm{GeV})$') ylabel(r'$R$') #savefig('p30.pdf') ax2=ax1.twinx() p2=ax2.plot(A0,data[:,33]) ax2.set_yscale('log') ax1.set_yscale('linear') ylim(ymax=10) axhline(y=0.136, xmin=0., xmax=1, color='black',ls=':') axhline(y=0.094, xmin=0., xmax=1, color='black',ls=':') setp(p2,color='orange',ms=3.0,marker='.',alpha=0.3,ls='') savefig('p33.png') clf() Thanks for your help -- View this message in context: http://www.nabble.com/Two-y-axis-with-twinx%2C-only-one-of-them-logscale-tp22082290p22082290.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Dear all, If I am not wrong it is not possible to set the rotation and alignament options of xlabel and ylabel in the rcParam. I think this would be a nice idea. If there is nobody working on that I can have a look. Could you please outline what classes/method should I look in the matplotlib source code? Regards Zunbelz -- Dr. Zunbeltz Izaola Helmholtz-Zentrum Berlin für Materialien und Energie GmbH Methods and Instruments (SF1) Glienicker Str. 100 D-14109 Berlin Tel (030) 8062-3179 Fax (030) 8062-2523 Room A 349
Ryan May wrote: > On Mon, Feb 16, 2009 at 7:22 AM, Manuel Metz <mm...@as...>wrote: > >> Attached is a very simple example that shows how to do something similar >> to scatterhist in matplotlib >> >> > That's a nice example. Are you going to check that into SVN? Yes, soon ... > Ryan >