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
(10) |
2
(17) |
3
(14) |
4
(28) |
5
(23) |
6
(12) |
7
(3) |
8
(11) |
9
(29) |
10
(31) |
11
(9) |
12
(35) |
13
(3) |
14
(9) |
15
(16) |
16
(14) |
17
(10) |
18
(7) |
19
(3) |
20
|
21
(4) |
22
(6) |
23
(14) |
24
(16) |
25
(10) |
26
(5) |
27
(4) |
28
(8) |
29
(19) |
30
(21) |
|
|
|
|
Hi, I am writing some code for automated testing via GPIB using MPL and PyQt. To simulate automated data collection while debugging the program, I have added a for loop (see below) after reading in a data file that plots each point one by one. When I run the program in Linux, I see each point appear on the canvas one by one as designed, but when I run the same code in Windows, nothing shows up on the canvas during the for loop. Instead, once the loop has completed, all points appear simulataneously. Is there any reason the why calls to canvas.draw() show nothing when run in Windows? I'm really lost on this one and would appreciate it someone can tell me what I'm doing wrong. If you need more info on what I'm doing, please let me know. Thanks in advance, Steve self.data = loadtxt('test_data2.csv',comments = '#',delimiter = ',',skiprows = 0) for i in range(0,len(self.data)): line, = self.plotWidget.canvas.ax.plot([self.data[i,1]], [self.data[i,0]], 'bo') self.plotWidget.canvas.draw()
On Tue, Jun 9, 2009 at 3:05 PM, Lou Pecora <lou...@ya...> wrote: > > --- On *Tue, 6/9/09, Gökhan SEVER <gok...@gm...>* wrote: > > Modified that section as to eliminate confusions: > > *> NOTE:* *Experimental work has been going on to integrate 3D plotting > functionality into matplotlib. Please see the related mplot3d > documentation<http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/index.html?highlight=mplot3d> or > take a look at matplotlib gallery<http://matplotlib.sourceforge.net/gallery.html> for > example 3D plots. For a more sophisticated 3D visualization and plotting > interface, you can try Mayavi <http://code.enthought.com/projects/mayavi/> which > is actively maintained and features an 'mlab' interface similar to > matplotlib's 'pylab'. * > > > --------------------------------------------------------------------------------------------- > > It is good news that matplotlib 3D functions are being upgraded. Thank > you. > But it is unclear from the message whether one still must stay with 0.91 > version or the 3D functions in pylab now work with 0.98 and higher. Can you > give us some information on that? > > Thanks. > > -- Lou Pecora, my views are my own. > > > I have thought using the word "experimental" will make the state of mplot3d clear :) Nevertheless, you have already been answered. GS
On Tue, Jun 9, 2009 at 3:05 PM, Lou Pecora<lou...@ya...> wrote: > --------------------------------------------------------------------------------------------- > It is good news that matplotlib 3D functions are being upgraded. Thank you. > But it is unclear from the message whether one still must stay with 0.91 > version or the 3D functions in pylab now work with 0.98 and higher. Can you > give us some information on that? They now work in matplotlib svn in the toolkit mpl_toolkits.mplot3d, and will be available in the next release http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn JDH
On Tue, Jun 9, 2009 at 2:42 PM, Hani Nakhoul<na...@gm...> wrote: > I'm sorry--here's the right listing: > > $ ls matplotlib > agg24 examples KNOWN_BUGS PKG-INFO setup.py > build __init__.py lib README.txt src > build.out __init__.pyc license setup.cfg.template TODO > CHANGELOG INSTALL Makefile setupegg.py ttconv > CXX install.out MANIFEST.in setupext.py > doc INTERACTIVE matplotlibrc.template setupext.pyc > es, this is your problem. You have the matplotlib source directory in your HOME directory and when you run from your home directory, it is being picked up instead of the installation directory. I usually name my src tree "mpl" to avoid this problem > cd > mv matplotlib mpl JDH
--- On Tue, 6/9/09, Gökhan SEVER <gok...@gm...> wrote: > Modified that section as to eliminate confusions: > NOTE: Experimental work has been going on to integrate 3D plotting functionality into matplotlib. Please see the related mplot3d documentation or take a look at matplotlib gallery for example 3D plots. For a more sophisticated 3D visualization and plotting interface, you can try Mayavi which is actively maintained and features an 'mlab' interface similar to matplotlib's 'pylab'. --------------------------------------------------------------------------------------------- It is good news that matplotlib 3D functions are being upgraded. Thank you. But it is unclear from the message whether one still must stay with 0.91 version or the 3D functions in pylab now work with 0.98 and higher. Can you give us some information on that? Thanks. -- Lou Pecora, my views are my own.
I'm sorry--here's the right listing: $ ls matplotlib agg24 examples KNOWN_BUGS PKG-INFO setup.py build __init__.py lib README.txt src build.out __init__.pyc license setup.cfg.template TODO CHANGELOG INSTALL Makefile setupegg.py ttconv CXX install.out MANIFEST.in setupext.py doc INTERACTIVE matplotlibrc.template setupext.pyc Hani On Tue, Jun 9, 2009 at 2:34 PM, John Hunter <jd...@gm...> wrote: > On Tue, Jun 9, 2009 at 2:13 PM, Hani Nakhoul<na...@gm...> wrote: > > Dear all, > > Here is the listing: > > > > In [1]: import matplotlib > > > > In [2]: print matplotlib.__file__ > > matplotlib/__init__.pyc > > > > In [3]: ls -a > > ./ .gimp-2.6/ Public/ > > ../ .gksu.lock .pulse/ > > .adobe/ .gnome2/ .pulse-cookie > > ATLAS/ .gnome2_private/ pydstool/ > > .bash_history .gnupg/ PyDSTool/ > > .bash_logout .gstreamer-0.10/ .recently-used > > .bashrc .gtk-bookmarks .recently-used.xbel > > .bashrc~ .gvfs/ scipy-0.7.0b1/ > > .cache/ .hplip/ scipy_build/ > > .checkgmail/ .ICEauthority .ssh/ > > .compiz/ .icons/ .subversion/ > > .config/ .inkscape/ .sudo_as_admin_successful > > .dbus/ .ipython/ SuiteSparse/ > > Desktop/ lapack-3.1.1/ Templates/ > > .dmrc .lftp/ .themes/ > > Documents/ .local/ .thumbnails/ > > .emacs .macromedia/ .tomboy/ > > .emacs.d/ matplotlib/ .tomboy.log > > .esd_auth .matplotlib/ .tsclient/ > > .evolution/ .mozilla/ .update-manager-core/ > > Examples@ .mozilla-thunderbird/ .update-notifier/ > > fftw-3.2/ Music/ Videos/ > > .fontconfig/ .nautilus/ .viminfo > > .gconf/ neuron/ .wapi/ > > .gconfd/ numpy-1.2.1/ .Xauthority > > .geany/ .openoffice.org2/ .xsession-errors > > .gegl-0.0/ Pictures/ > > .gftp/ .profile > > > > What I wanted was the listing of the "matplotlib" dir > > > ls matplotlib > > it looks like you have a matplotlib dir in your working directory that > is being picked up and you probably don't want it. > > JDH >
On Tue, Jun 9, 2009 at 2:13 PM, Hani Nakhoul<na...@gm...> wrote: > Dear all, > Here is the listing: > > In [1]: import matplotlib > > In [2]: print matplotlib.__file__ > matplotlib/__init__.pyc > > In [3]: ls -a > ./ .gimp-2.6/ Public/ > ../ .gksu.lock .pulse/ > .adobe/ .gnome2/ .pulse-cookie > ATLAS/ .gnome2_private/ pydstool/ > .bash_history .gnupg/ PyDSTool/ > .bash_logout .gstreamer-0.10/ .recently-used > .bashrc .gtk-bookmarks .recently-used.xbel > .bashrc~ .gvfs/ scipy-0.7.0b1/ > .cache/ .hplip/ scipy_build/ > .checkgmail/ .ICEauthority .ssh/ > .compiz/ .icons/ .subversion/ > .config/ .inkscape/ .sudo_as_admin_successful > .dbus/ .ipython/ SuiteSparse/ > Desktop/ lapack-3.1.1/ Templates/ > .dmrc .lftp/ .themes/ > Documents/ .local/ .thumbnails/ > .emacs .macromedia/ .tomboy/ > .emacs.d/ matplotlib/ .tomboy.log > .esd_auth .matplotlib/ .tsclient/ > .evolution/ .mozilla/ .update-manager-core/ > Examples@ .mozilla-thunderbird/ .update-notifier/ > fftw-3.2/ Music/ Videos/ > .fontconfig/ .nautilus/ .viminfo > .gconf/ neuron/ .wapi/ > .gconfd/ numpy-1.2.1/ .Xauthority > .geany/ .openoffice.org2/ .xsession-errors > .gegl-0.0/ Pictures/ > .gftp/ .profile What I wanted was the listing of the "matplotlib" dir > ls matplotlib it looks like you have a matplotlib dir in your working directory that is being picked up and you probably don't want it. JDH
Dear all, Here is the listing: In [1]: import matplotlib In [2]: print matplotlib.__file__ matplotlib/__init__.pyc In [3]: ls -a ./ .gimp-2.6/ Public/ ../ .gksu.lock .pulse/ .adobe/ .gnome2/ .pulse-cookie ATLAS/ .gnome2_private/ pydstool/ .bash_history .gnupg/ PyDSTool/ .bash_logout .gstreamer-0.10/ .recently-used .bashrc .gtk-bookmarks .recently-used.xbel .bashrc~ .gvfs/ scipy-0.7.0b1/ .cache/ .hplip/ scipy_build/ .checkgmail/ .ICEauthority .ssh/ .compiz/ .icons/ .subversion/ .config/ .inkscape/ .sudo_as_admin_successful .dbus/ .ipython/ SuiteSparse/ Desktop/ lapack-3.1.1/ Templates/ .dmrc .lftp/ .themes/ Documents/ .local/ .thumbnails/ .emacs .macromedia/ .tomboy/ .emacs.d/ matplotlib/ .tomboy.log .esd_auth .matplotlib/ .tsclient/ .evolution/ .mozilla/ .update-manager-core/ Examples@ .mozilla-thunderbird/ .update-notifier/ fftw-3.2/ Music/ Videos/ .fontconfig/ .nautilus/ .viminfo .gconf/ neuron/ .wapi/ .gconfd/ numpy-1.2.1/ .Xauthority .geany/ .openoffice.org2/ .xsession-errors .gegl-0.0/ Pictures/ .gftp/ .profile Hani On Tue, Jun 9, 2009 at 10:30 AM, John Hunter <jd...@gm...> wrote: > On Tue, Jun 9, 2009 at 10:22 AM, Hani Nakhoul<na...@gm...> wrote: > > Dear all, > > I'm running matplotlib 0.98.5.2 on a machine with Ubuntu Intrepid 8.10. > It's > > worked well for me so far, but I encounter problems running matplotlib > when > > trying to update the PYTHONPATH in the .bashrc file. Adding just the line > > "export PYTHONPATH=$PYTHONPATH", for example, gives the following: > > > > $ ipython -pylab > > Traceback (most recent call last): > > File "/usr/bin/ipython", line 27, in <module> > > IPython.Shell.start().mainloop() > > File "/var/lib/python-support/python2.5/IPython/Shell.py", line 1219, > in > > start > > shell = _select_shell(sys.argv) > > File "/var/lib/python-support/python2.5/IPython/Shell.py", line 1188, > in > > _select_shell > > backend = matplotlib.rcParams['backend'] > > AttributeError: 'module' object has no attribute 'rcParams' > > Most likely you are adding a directory to the path that has a > directory named matplotlib in it (eg the matplotlib src directory) > which is not the matplotlib install directory. Try doing > > >>> import matplotlib > >>> print matplotlib.__file__ > > when the PYTHONPATH is set to the troublesome value and then do an ls > on the directory that is reported by the __file__ printout. Post the > listing here and we can advise further. > > JDH >
On Tue, 9 Jun 2009 11:31:19 -0700 (PDT) Anton Vasilescu <vas...@ya...> wrote: > I wasn't able to find one in Matplotlib but you can use >PIL library for all the imaging work. Really easy to use. > Here is the webpage for it: >http://www.pythonware.com/products/pil/index.htm > > Anton > > Hi Anton, Thank you for your prompt reply. I am aware of PIL. However I didn't find an autocrop function within PIL. Cheers, Nils from PIL import Image im = Image.open('test.png') # # Calculates the bounding box of the non-zero regions in the image. # The bounding box is returned as a 4-tuple defining # the left, upper, right, and lower pixel coordinate. # If the image is completely empty, this method returns None. # print im.getbbox() print im.size # # Returns a rectangular region from the current image. # The box is a 4-tuple defining the left, upper, right, and lower # box = (100, 100, 800, 800) region = im.crop(box) region.show() It would be nice to compute the box automatically. Any idea ?
I wasn't able to find one in Matplotlib but you can use PIL library for all the imaging work. Really easy to use. Here is the webpage for it: http://www.pythonware.com/products/pil/index.htm Anton ________________________________ From: Nils Wagner <nw...@ia...> To: mat...@li... Sent: Tuesday, June 9, 2009 10:22:05 AM Subject: [Matplotlib-users] autocrop function Hi all, I am looking for an autocrop function. It should remove borders from an image. Is it available in matplotlib ? Any pointer would be appreciated. Thanks in advance Nils ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users
On Tue, Jun 9, 2009 at 1:00 PM, Esmail <eb...@ho...> wrote: > Hi Gökhan, > > > Gökhan SEVER wrote: > > > > I'll give mayavi/mlab a try, I think there was a note to the > > effect that matplotlib quit supporting 3D plots and recommended > > mayavi. > > > > > > There is still work going on to improve matplotlib 3d plotting > > functionality. You can see matplotlib gallery or check-out the latest > > trunk of matplotlib and experiment with the 3d examples. > > Ah .. ok .. good to know. I was going by this note: > > NOTE: 3D plotting has been removed from matplotlib >= 0.98. You'll either > need > to use an older 0.91.x version or look at Mayavi which is actively > maintained > and features an 'mlab' interface similar to matplotlib's 'pylab'. > > posted here: > > http://www.scipy.org/Cookbook/Matplotlib > Modified that section as to eliminate confusions: *NOTE:* *Experimental work has been going on to integrate 3D plotting functionality into matplotlib*. Please see the related mplot3d documentation<http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/index.html?highlight=mplot3d>or take a look at matplotlib gallery <http://matplotlib.sourceforge.net/gallery.html> for example 3D plots. For a more sophisticated 3D visualization and plotting interface, you can try Mayavi <http://code.enthought.com/projects/mayavi/> which is actively maintained and features an 'mlab' interface similar to matplotlib's 'pylab'. > > > > So much to learn, so little time :-) > > > > > > Isn't that nice? Lifelong learning? Why are complaining? Are you not a > > scientist or raising a kid something :) > > hehe .. I know it sounded like a complaint, but it's really not. I > consider myself a lifelong student, and I love learning new things. > I just have a big appetite :-) > No matter how big an appetite you have, you can only digest certain amount of items at a time :) Cheers for lifelong learning :) > > Cheers, > Esmail > >
Hi Gökhan, Gökhan SEVER wrote: > > I'll give mayavi/mlab a try, I think there was a note to the > effect that matplotlib quit supporting 3D plots and recommended > mayavi. > > > There is still work going on to improve matplotlib 3d plotting > functionality. You can see matplotlib gallery or check-out the latest > trunk of matplotlib and experiment with the 3d examples. Ah .. ok .. good to know. I was going by this note: NOTE: 3D plotting has been removed from matplotlib >= 0.98. You'll either need to use an older 0.91.x version or look at Mayavi which is actively maintained and features an 'mlab' interface similar to matplotlib's 'pylab'. posted here: http://www.scipy.org/Cookbook/Matplotlib > So much to learn, so little time :-) > > > Isn't that nice? Lifelong learning? Why are complaining? Are you not a > scientist or raising a kid something :) hehe .. I know it sounded like a complaint, but it's really not. I consider myself a lifelong student, and I love learning new things. I just have a big appetite :-) Cheers, Esmail
On Tue, Jun 9, 2009 at 12:46 PM, Esmail <eb...@ho...> wrote: > Sebastian Busch wrote: > > > > > > Hey Esmail, > > > > there was the possibility for 3D plots in matplotlib: > > http://www.scipy.org/Cookbook/Matplotlib/mplot3D > > > > however, the mayavi "mlab" interface was designed explicitly to be as > > simple as pylab. > > > http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab.html > > > > have fun 3D plotting, > > sebastian. > > I'll give mayavi/mlab a try, I think there was a note to the > effect that matplotlib quit supporting 3D plots and recommended > mayavi. > There is still work going on to improve matplotlib 3d plotting functionality. You can see matplotlib gallery or check-out the latest trunk of matplotlib and experiment with the 3d examples. > > So much to learn, so little time :-) Isn't that nice? Lifelong learning? Why are complaining? Are you not a scientist or raising a kid something :) > > > Thanks, > Esmail > >
Sebastian Busch wrote: > > > Hey Esmail, > > there was the possibility for 3D plots in matplotlib: > http://www.scipy.org/Cookbook/Matplotlib/mplot3D > > however, the mayavi "mlab" interface was designed explicitly to be as > simple as pylab. > http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab.html > > have fun 3D plotting, > sebastian. I'll give mayavi/mlab a try, I think there was a note to the effect that matplotlib quit supporting 3D plots and recommended mayavi. So much to learn, so little time :-) Thanks, Esmail
Hi all, I am looking for an autocrop function. It should remove borders from an image. Is it available in matplotlib ? Any pointer would be appreciated. Thanks in advance Nils
> >> I am curious though why you prefer to alter the default color cycle >> rather than just passing the color in to the plot command [...] > I got tired of the extra code involved with this method and went > looking for a way to change the defaults. I do something similar to enforce style/substance separation; the plotting is the simplest possible line at the end of the data analysis, and all the stylistic choices are somewhere else. Makes it easy to keep all plot styles consistent during a project, and makes it slightly harder to futz with font prettiness when I should be doing real work. Chloe Lewis Graduate student, Amundson Lab Division of Ecosystem Sciences, ESPM University of California, Berkeley 137 Mulford Hall - #3114 Berkeley, CA 94720-3114 ch...@na...
On Tue, Jun 9, 2009 at 10:22 AM, Hani Nakhoul<na...@gm...> wrote: > Dear all, > I'm running matplotlib 0.98.5.2 on a machine with Ubuntu Intrepid 8.10. It's > worked well for me so far, but I encounter problems running matplotlib when > trying to update the PYTHONPATH in the .bashrc file. Adding just the line > "export PYTHONPATH=$PYTHONPATH", for example, gives the following: > > $ ipython -pylab > Traceback (most recent call last): > File "/usr/bin/ipython", line 27, in <module> > IPython.Shell.start().mainloop() > File "/var/lib/python-support/python2.5/IPython/Shell.py", line 1219, in > start > shell = _select_shell(sys.argv) > File "/var/lib/python-support/python2.5/IPython/Shell.py", line 1188, in > _select_shell > backend = matplotlib.rcParams['backend'] > AttributeError: 'module' object has no attribute 'rcParams' Most likely you are adding a directory to the path that has a directory named matplotlib in it (eg the matplotlib src directory) which is not the matplotlib install directory. Try doing >>> import matplotlib >>> print matplotlib.__file__ when the PYTHONPATH is set to the troublesome value and then do an ls on the directory that is reported by the __file__ printout. Post the listing here and we can advise further. JDH
On Tue, Jun 9, 2009 at 10:18 AM, Jouni K. Seppänen<jk...@ik...> wrote: > Chaitanya Krishna <ic...@gm...> writes: > >> On Tue, Jun 9, 2009 at 12:05 PM, Paul Anton Letnes <pau...@gm...> wrote: >>> >>> When I run the script below, the xlabel and ylabel do not show up. If I >>> increase the figure size, it all works fine. >> >> I am not sure if it is a bug. But, it is usual that such a thing >> happens when you are making small figures (like in your case). > > Arguably it is a bug, since it is reasonable to expect that when you set > an xlabel or ylabel (or, say, large yticklabels), it shows up in the > figure. There are at least two problems to solve here: what should the > user interface be like, and how can it best be implemented? These FAQs are also probably relevant: http://matplotlib.sourceforge.net/faq/howto_faq.html#move-the-edge-of-an-axes-to-make-room-for-tick-labels http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels JDH
Dear all, I'm running matplotlib 0.98.5.2 on a machine with Ubuntu Intrepid 8.10. It's worked well for me so far, but I encounter problems running matplotlib when trying to update the PYTHONPATH in the .bashrc file. Adding just the line "export PYTHONPATH=$PYTHONPATH", for example, gives the following: $ ipython -pylab Traceback (most recent call last): File "/usr/bin/ipython", line 27, in <module> IPython.Shell.start().mainloop() File "/var/lib/python-support/python2.5/IPython/Shell.py", line 1219, in start shell = _select_shell(sys.argv) File "/var/lib/python-support/python2.5/IPython/Shell.py", line 1188, in _select_shell backend = matplotlib.rcParams['backend'] AttributeError: 'module' object has no attribute 'rcParams' On the other hand, $ ipython permits ipython to load seemingly normally, but in that case In [1]: import matplotlib.pyplot as plt ImportError: No module named pyplot Any ideas on what might be wrong? I'd be grateful for any advice. Thanks, Hani Nakhoul
Chaitanya Krishna <ic...@gm...> writes: > On Tue, Jun 9, 2009 at 12:05 PM, Paul Anton Letnes <pau...@gm...> wrote: >> >> When I run the script below, the xlabel and ylabel do not show up. If I >> increase the figure size, it all works fine. > > I am not sure if it is a bug. But, it is usual that such a thing > happens when you are making small figures (like in your case). Arguably it is a bug, since it is reasonable to expect that when you set an xlabel or ylabel (or, say, large yticklabels), it shows up in the figure. There are at least two problems to solve here: what should the user interface be like, and how can it best be implemented? The user interface question seems difficult to me. If you set the figure size to something small (as in this case) and then add labels, should matplotlib reduce the area available for the plot? Or should it reduce the font size of the labels and the tick labels, and perhaps the amount of white space between the axes and the labels? Or some combination of these? The implementation question could also be somewhat hairy, since the bounding box of text objects depends on the backend. If agg and pdf disagree on the size of a label, is it OK to get different-looking results in png and pdf? -- Jouni K. Seppänen http://www.iki.fi/jks
On Tue, Jun 9, 2009 at 8:23 AM, Ulrich vor dem Esche<ulr...@we...> wrote: > Greetings! I am new to matplotlib and python, and encountered a general problem: > If i try to customize matplotlibrc, nothing changes. I changed the right thing: > When i try > > import matplotlib > matplotlib.matplotlib_fname() > > I get 'C:\\Python25\lib\\site-packages\\matplotlib\\mpl-data\\matplotlibrc' > (as you see I'm in windows..) > > When I f.e. change > > #xtick.labelsize : 14 (from '12') > #xtick.direction : out (from 'in') > By default, all lines are commented out. You must remove the leading '#" symbol to see your changes take effect JDH
Ulrich vor dem Esche wrote: > ... > #xtick.labelsize : 14 (from '12') > #xtick.direction : out (from 'in') > > nothing changes ... > I must have missed something very basic.. I guess that would be the "#" which declares everything behind as a comment. Does it work when you remove the #? Best, Sebastian.
Greetings! I am new to matplotlib and python, and encountered a general problem: If i try to customize matplotlibrc, nothing changes. I changed the right thing: When i try import matplotlib matplotlib.matplotlib_fname() I get 'C:\\Python25\lib\\site-packages\\matplotlib\\mpl-data\\matplotlibrc' (as you see I'm in windows..) When I f.e. change #xtick.labelsize : 14 (from '12') #xtick.direction : out (from 'in') nothing changes at all. My program starts with 'import matplotlib.pyplot as plt', so that actually matplotlibrc should be in use.. I tried to change other things in \\matplotlib aswell, they were all ignored. I must have missed something very basic.. What did i miss? Ulli ____________________________________________________________ Text: GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de
On Tue, Jun 9, 2009 at 4:44 AM, Nan Dun<du...@yl...> wrote: > Hello, > > Currently, in navigation window, the coordinates of cursor show like > x = "%.1f", y="%.1f" > > Is it possible to custom these labels such that they show like > > my_x="%.3f", my_y="%.6f" def my_x(x): return '%.3f'%x def my_y(y): return '%.3f'%y ax.fmt_xdata = my_x ax.fmt_ydata = my_y JDH
You may just want to start with the "custom_ticker1.py" example here: http://matplotlib.sourceforge.net/examples/pylab_examples/custom_ticker1.html The meat of it is just to provide a function that converts the incoming values (in your case pixel positions) into whatever you want to be displayed. Cheers, Mike Jeremy Lewi wrote: > I want to let matplotlib control where the tick marks go, but I want > to scale the value of the tick labels. For example, > if my matrix has a 100 columns the tick marks might be [0,25,50,100]. > I want to scale these tick labels by some value say .01 so that the > corresponding tick labels would be [0,.25,.5,1]. > > Now say I zoom in on the image so that the xaxis limits are (0,50). > Lets suppose the tick marks are now [0,10,20,30,40,50] > Then in this case the tick labels should be > [0,.1,.2,.3,.4,.5] > > So how do I go about creating a custom formatter? > > Thanks > Jeremy > > Michael Droettboom wrote: >> What are you setting the x ticklabels to? If you want to control how >> the numbers are displayed, you can create a custom formatter (which >> is basically a function to convert a floating-point number to a >> string). If you want to control the number of ticks across the axis, >> you can make a custom ticker. >> >> If you can describe what your end goal is, I'm happy to describe the >> above options in more detail. >> >> Cheers, >> Mike >> >> Jeremy Lewi wrote: >> >>> Hi, >>> I'm using imshow to make an image of a 2-d matrix. I use >>> set_xticklabels to adjust the x-axis labels. The problem is that >>> when I then zoom in on the plot, the axis labels are not adjusted >>> appropriately. Does anyone suggestions on how I can fix this? >>> >>> Thanks >>> Jeremy >>> >>> ------------------------------------------------------------------------------ >>> >>> Crystal Reports - New Free Runtime and 30 Day Trial >>> Check out the new simplified licensing option that enables unlimited >>> royalty-free distribution of the report engine for externally facing >>> server and web deployment. >>> http://p.sf.net/sfu/businessobjects >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA