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
(14) |
2
(11) |
3
(5) |
4
(17) |
5
(11) |
6
(37) |
7
(35) |
8
(9) |
9
(1) |
10
(9) |
11
(7) |
12
(22) |
13
(34) |
14
(24) |
15
(27) |
16
(13) |
17
(19) |
18
(43) |
19
(36) |
20
(12) |
21
(9) |
22
(21) |
23
(3) |
24
(5) |
25
(30) |
26
(14) |
27
(23) |
28
(19) |
29
(19) |
30
(10) |
31
(6) |
|
|
|
|
|
|
> I believe that it is just moved to another directory > (lib/matplotlib/sphinxext). Yes, thanks. Its here: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/ trunk/matplotlib/lib/matplotlib/sphinxext/
On Mon, May 4, 2009 at 10:47 PM, Alan G Isaac <ala...@gm...> wrote: > The docs > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.legend > suggest that > loc=(0.5,0.5) > is equivalent to > loc='center' > but it is not. How can I center the legend > relative to the x-axis? > As you may have noticed, loc with a tuple of two floats is interpreted as a coordinate for the lower-left corner. > It seems to me that I need to be able to set > not only the coordinates but also what part > of the legend box is placed at those coordinates. > (Along the lines of LaTeX box placement.) > Can I do that? > You can, but with mpl from svn trunk. For example, legend(bbox_to_anchor=(0.5, 0.5), loc="center") For some more details, take a look at the link below, which is my work-in-progress legend guide. http://dl.getdropbox.com/u/178748/mpl/legend_guid/html/legend.html#legend-location Regards, -JJ > Thanks, > Alan Isaac > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
The docs http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.legend suggest that loc=(0.5,0.5) is equivalent to loc='center' but it is not. How can I center the legend relative to the x-axis? It seems to me that I need to be able to set not only the coordinates but also what part of the legend box is placed at those coordinates. (Along the lines of LaTeX box placement.) Can I do that? Thanks, Alan Isaac
I'm not understanding facecolor and edgecolor. In the code below (on Windows, with TkAgg) I get the facecolor displayed but not the edgecolor, and the saved figure shows *neither*. Why? (version is 0.98.1) Thanks, Alan Isaac import matplotlib.pyplot as plt import numpy as np fig1 = plt.figure(1) fig1.set_frameon(True) fig1.set_facecolor('r') fig1.set_edgecolor('b') ax1 = fig1.gca() ax1.plot([1,2,3]) fig1.savefig('c:/temp/temp.eps') plt.show()
jtamir wrote: > Hello, > > Is it possible to have basemap plot in the usual way on a polar-projection > subplot? > No. > I want to do something like this: > fig = plt.figure(figsize) > ax = fig.add_subplot(111, polar=True) > m = Basemap(...) > m.drawcoastlines(...) > etc. > > The reason I want to have a polar-projection plot is because I want to add > concentric circles to the subplot using rgrids. > > Thanks, > > jtamir > You can draw lines of latitude with the drawparallels method - these are concentric circles on a polar projection. -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
Hello, Is it possible to have basemap plot in the usual way on a polar-projection subplot? I want to do something like this: fig = plt.figure(figsize) ax = fig.add_subplot(111, polar=True) m = Basemap(...) m.drawcoastlines(...) etc. The reason I want to have a polar-projection plot is because I want to add concentric circles to the subplot using rgrids. Thanks, jtamir -- View this message in context: http://www.nabble.com/Basemap---plot-on-a-polar-figure-tp23377500p23377500.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Mon, May 4, 2009 at 10:50 AM, Matthieu Brucher < mat...@gm...> wrote: > Just compile numpy on a system that doesn't have lapack3 installed. > Unfortunately, this is going to be difficult - our build process is very automated (done every night) and we use these systems for other things too, so I'm very reluctant to tinker with the installed software, and I doubt we have spare boxes with suitable hardware. I will talk to our admin but my guess is he'll say the same thing. thanks, Nat
Eric and Thomas, Thanks for your help. I was able to get it plotting MUCH faster. Here's my code: #!/usr/bin/env python from pylab import * from scipy import * ion() img = standard_normal((50,100)) image = imshow(img,interpolation='nearest',animated=True,label="blah") for k in range(1,100): img = standard_normal((100,100)) image.set_data(img) draw() Thanks again. -Joey On Sat, May 2, 2009 at 1:27 PM, Eric Firing <ef...@ha...> wrote: > Thomas Robitaille wrote: > >> Not sure if this will help, but maybe you can do something like this? >> >> --- >> #!/usr/bin/env python >> >> from pylab import * >> from scipy import * >> > > To run this as a standalone script, without ipython -pylab, you need to > include: > > ion() > > >> img = standard_normal((40,40)) >> image = imshow(img,interpolation='nearest',animated=True,label="blah") >> >> for k in range(1,10000): >> img = standard_normal((40,40)) >> image.set_data(img) >> show() >> > > show() should never be called more than once for a given figure; what you > want here is draw(). > > Eric > > > > --- >> >> Note, interpolation='nearest' can be faster than interpolation=None if >> your default interpolation is set to bicubic (which it probably is) >> >> Does this speed things up? >> >> Thomas >> >> On May 1, 2009, at 3:31 PM, Joey Wilson wrote: >> >> I am creating a script that generates images and displays them to the >>> screen in real time. I created the following simple script: >>> >>> __________________________ >>> >>> #!/usr/bin/env python >>> >>> from pylab import * >>> from scipy import * >>> >>> for k in range(1,10000): >>> img = standard_normal((40,40)) >>> imshow(img,interpolation=None,animated=True,label="blah") >>> clf() >>> show() >>> >>> __________________________ >>> >>> Now, this script plots the image too slowly. I am forced to use the >>> clf() function so that it doesn't slow down at each iteration of the for >>> loop. Is there a way that I can plot this simple image faster? What's the >>> best way to get imshow() to plot quickly? Thanks for your help. >>> >>> -Joey >>> >>> >>> ------------------------------------------------------------------------------ >>> Register Now & Save for Velocity, the Web Performance & Operations >>> Conference from O'Reilly Media. Velocity features a full day of >>> expert-led, hands-on workshops and two days of sessions from industry >>> leaders in dedicated Performance & Operations tracks. Use code vel09scf >>> and Save an extra 15% before 5/3. >>> http://p.sf.net/sfu/velocityconf_______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> >> >> ------------------------------------------------------------------------------ >> Register Now & Save for Velocity, the Web Performance & Operations >> Conference from O'Reilly Media. Velocity features a full day of expert-led, >> hands-on workshops and two days of sessions from industry leaders in >> dedicated Performance & Operations tracks. Use code vel09scf and Save an >> extra 15% before 5/3. http://p.sf.net/sfu/velocityconf >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > >
Hi, Just compile numpy on a system that doesn't have lapack3 installed. Matthieu 2009年5月4日 Nathaniel Echols <nat...@gm...>: > I need to distribute matplotlib as part of a large and somewhat > heterogeneous package of Python-based software. On Macs, lapack is > installed by default, and I can rely on the linking working regardless of > which OS version it was compiled on (we use 10.4.11, but it runs fine on > 10.5). On Linux, it's variable - the kernel 2.6-based OSes we use appear to > have it, but not the older 2.4-based systems. For the older systems this is > not a problem - it results in this: > > nat@linux2.4> ldd lapack_lite.so > linux-gate.so.1 => (0xffffe000) > libc.so.6 => /lib/libc.so.6 (0xf7d97000) > /lib/ld-linux.so.2 (0x56555000) > The lack of links to the full lapack module doesn't appear to break anything > that I do - I'm just plotting simple lines and I don't use any of the numpy > routines in my code. > This is what happens on the newer systems: > nat@linux2.6> ldd lapack_lite.so > linux-gate.so.1 => (0xffffe000) > liblapack.so.3 => not found > libblas.so.3 => not found > libg2c.so.0 => /usr/lib/libg2c.so.0 (0xf7fb6000) > libm.so.6 => /lib/libm.so.6 (0xf7f8f000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7f82000) > libc.so.6 => /lib/libc.so.6 (0xf7e45000) > /lib/ld-linux.so.2 (0x56555000) > This results in an import error on systems that *don't* have lapack3 > installed. We would prefer to avoid having to tell our users to install > more software in order to use what I've written. Is there any way to force > numpy to *not* link to anything besides what it saw in the first example? I > would prefer to avoid hacking into the numpy distutils scripts if possible. > Sorry this isn't directly matplotlib-related, but I thought I'd see if > someone here had encountered this problem before I subscribed to another > list. > thanks, > Nat > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- Information System Engineer, Ph.D. Website: http://matthieu-brucher.developpez.com/ Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn: http://www.linkedin.com/in/matthieubrucher
I need to distribute matplotlib as part of a large and somewhat heterogeneous package of Python-based software. On Macs, lapack is installed by default, and I can rely on the linking working regardless of which OS version it was compiled on (we use 10.4.11, but it runs fine on 10.5). On Linux, it's variable - the kernel 2.6-based OSes we use appear to have it, but not the older 2.4-based systems. For the older systems this is not a problem - it results in this: nat@linux2.4> ldd lapack_lite.so linux-gate.so.1 => (0xffffe000) libc.so.6 => /lib/libc.so.6 (0xf7d97000) /lib/ld-linux.so.2 (0x56555000) The lack of links to the full lapack module doesn't appear to break anything that I do - I'm just plotting simple lines and I don't use any of the numpy routines in my code. This is what happens on the newer systems: nat@linux2.6> ldd lapack_lite.so linux-gate.so.1 => (0xffffe000) liblapack.so.3 => not found libblas.so.3 => not found libg2c.so.0 => /usr/lib/libg2c.so.0 (0xf7fb6000) libm.so.6 => /lib/libm.so.6 (0xf7f8f000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7f82000) libc.so.6 => /lib/libc.so.6 (0xf7e45000) /lib/ld-linux.so.2 (0x56555000) This results in an import error on systems that *don't* have lapack3 installed. We would prefer to avoid having to tell our users to install more software in order to use what I've written. Is there any way to force numpy to *not* link to anything besides what it saw in the first example? I would prefer to avoid hacking into the numpy distutils scripts if possible. Sorry this isn't directly matplotlib-related, but I thought I'd see if someone here had encountered this problem before I subscribed to another list. thanks, Nat
On Mon, May 4, 2009 at 2:22 AM, Erik Tollerud <eri...@gm...>wrote: > I'm hoping to generate a line plot where the color of each pixel on > the plot is given by linearly interpolating the colormap from each > point specified in the line, instead of having the whole line be a > solid color. I can "mock this up" by doing a scatter plot where the > points are much closer together than the screen resolution, but that > seems inelegant, and sometimes produces weird output. So is there a > way to do effectively the same thing with a line plot or somehow > specify this behavior in scatter? IIRC, the backends that matplotlib uses (Gtk, Agg, etc.) only support a single color per line, so breaking up the line into different segments/points is really your only option. Instead of scatter, you can break up your line into separate sections and have them colormapped for you, using a LineCollection. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States
I believe that it is just moved to another directory (lib/matplotlib/sphinxext). http://www.nabble.com/Re%3A-Sphinx-custom-extension-mess%2C-and-patches-p22037746.html Regards, -JJ On Mon, May 4, 2009 at 11:02 AM, Timmie <tim...@gm...> wrote: > Hello, > why is the matplotlib.sphinxext.mathmpl been taken off the SVN repository: > https://matplotlib.svn.sourceforge.net/svnroot/ > matplotlib/trunk/matplotlib/doc/sphinxext/ > > I have been using it to parse formulas in my documentation source. > > It is still used by the Sphinx configuration from mpl svn: > > extensions = ['matplotlib.sphinxext.mathmpl', 'math_symbol_table', > 'sphinx.ext.autodoc', 'matplotlib.sphinxext.only_directives', > 'matplotlib.sphinxext.plot_directive', 'inheritance_diagram', > 'gen_gallery', 'gen_rst'] > > Thanks in advance, > Timmie > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Hello, why is the matplotlib.sphinxext.mathmpl been taken off the SVN repository: https://matplotlib.svn.sourceforge.net/svnroot/ matplotlib/trunk/matplotlib/doc/sphinxext/ I have been using it to parse formulas in my documentation source. It is still used by the Sphinx configuration from mpl svn: extensions = ['matplotlib.sphinxext.mathmpl', 'math_symbol_table', 'sphinx.ext.autodoc', 'matplotlib.sphinxext.only_directives', 'matplotlib.sphinxext.plot_directive', 'inheritance_diagram', 'gen_gallery', 'gen_rst'] Thanks in advance, Timmie
Hi, I'm new with matplotlib. I need to make a graph with the X axis represents time in hours and minutes. My script don't works, I want to display all the values of time that I have. I use a list of string like this : t=['0015', '0030', '0045', '0100', '0115', '0130', '0145', '0200', '0215', '0230', '0245', '0300', '03 15', '0330', '0345', '0400', '0415', '0430', '0445', '0500', '0515', '0530', '0545', '0600', '0615', '0630', '0645', '0700', '0715', '0730', '0745', '0800', '0815', '0830', '0845', '0900', '0915', '09 30', '0945', '1000', '1015', '1030', '1045', '1100', '1115', '1130', '1145', '1200', '1215', '1230', '1245', '1300', '1315', '1330', '1345', '1400', '1415'] ax.plot(t, y) I tried to convert hours and minutes to the base 100 ( , it works but I can not show on the x-axis the hours, minutes. I tried to use plot_date, but I don't understand "x and/or y can be a sequence of dates represented as float days since 0001年01月01日 UTC." Could you help me, please ? /olivier
Hi John, On Sun, May 3, 2009 at 00:21, John Hunter <jd...@gm...> wrote: > On Sat, May 2, 2009 at 9:42 AM, Sandro Tosi <mo...@de...> wrote: >> >> Hi all! >> I'd like to embed a mpl graph into a GTK application (and for that >> embedding_in_gtk*.py examples are fine) but I would also like to >> dynamically update the graph with time. > > >> >> Consider like if I want to plot some dynamic system information, like >> cpu usage, memory occupation, or so. Than I want to gather those info >> at 1 sec interval, and dynamically update the graph adding the new >> values. >> >> How can I do it? I'm stuck with the "update data as they come" part >> (please note I need for GTK embedded mpl code). > > The idioms in the examples/animations dir should be directly portable > to an embedded gtk app, eg simple_anim_gtk.py, > dynamic_image_gtkagg.py, etc. You will need to either use an idle > handle, a timeout handler, or a special event in the gtk event > handling framework to trigger an update to the data and draw. You can > extend the gobject signals to handle custom events (eg data arrives) > if you want to go this route, but since you are trying to illustrate > mpl more than gtk (I assume) you may want to go the easy route and use you assume right :) > the timeout or idle handler and just check and see if new data has > arrived and then update as necessary. yeah, I solved with "gobject.idle_add" >> PS: if there's someone that knows how to gather cpu percentage usage >> on a linux sys, please tell me :) It seems not that easy to find it >> out from google ;) > > http://tinyurl.com/d7lkga > > Sorry :-) Couldn't resist ehhe :) but you're right, I've expressed the question wrongly: I was searching some python module / binding :) > (less obnoxious answer > http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html) At the end I used subprocess module to call sar Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
Hi, Could you send your setup. I'm not expert but I can check it. /olivier -----Original Message----- From: sordnay [mailto:so...@gm...] Sent: jeudi 30 avril 2009 18:23 To: mat...@li... Subject: [Matplotlib-users] mathtext and py2exe hello, I have written a program which uses matplotlib to plot some figures, it uses mathtext to add some special chars (basically just the square on acceleration units), and the program works just fine, but using py2exe to build a windows executable, it fails somewhere drawing that square symbol. The error the program yields is something like "unable to convert string to unicode". Has anyone experienced this kind of problem with mathtext and py2exe or has any clue what is needed to be included at the py2exe setup.py to fix it? I know this is not the best place for an answer, but I couldn't find where to get help on py2exe site :-/ so if anyone could help... Thanks a lot. -- View this message in context: http://www.nabble.com/mathtext-and-py2exe-tp23319691p23319691.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hi Erik, On Mon, May 4, 2009 at 09:22, Erik Tollerud <eri...@gm...> wrote: > I'm hoping to generate a line plot where the color of each pixel on > the plot is given by linearly interpolating the colormap from each > point specified in the line, instead of having the whole line be a > solid color. I can "mock this up" by doing a scatter plot where the > points are much closer together than the screen resolution, but that > seems inelegant, and sometimes produces weird output. So is there a > way to do effectively the same thing with a line plot or somehow > specify this behavior in scatter? maybe this[1] could be of help? [1] http://www.scipy.org/Cookbook/Matplotlib/MulticoloredLine Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
I'm hoping to generate a line plot where the color of each pixel on the plot is given by linearly interpolating the colormap from each point specified in the line, instead of having the whole line be a solid color. I can "mock this up" by doing a scatter plot where the points are much closer together than the screen resolution, but that seems inelegant, and sometimes produces weird output. So is there a way to do effectively the same thing with a line plot or somehow specify this behavior in scatter?
Freddie Witherden a écrit : > Hi all, > > For those that are interested I have finally (now that my first batch > of exams are finished) set-up a blog so that you can track the > progress of the project. > > My blog can be found here: http://gsoc-mathtex.blogspot.com/ (no marks > for originality ;). I intend to update it on a semi-regular basis, > time permitting. > > Regards, Freddie. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > That's very cool. I'm very impatient to test it... Christophe.
hi all, is there a way to plot the results of hierarchical clustering as a dendrogram on top and to the sides of a heatmap matrix? for example, like this figure: http://www.egms.de/figures/meetings/gmds2006/06gmds075.f1.png any examples of how to do this in matplotlib would be greatly appreciated. thank you.
ax.twin returns a ParasiteAxesAuxTrans instance which is derived from the mpl's original Axes, but only drawing-related methods are meant to be meaningful. For example, this axes is never meant to be added to the figure and the draw method of this axes is never meant to be called. I haven't looked at it thoroughly but I guess the reason the callbacks are not processed is because this axes is not added to the figure and no set_xlim (or set_ylim) is explicitly called. However, consider it as a feature not a bug. The xlim of the parasite axes is mean to be "only" changed when the xlim of the host axes changes. And the set_xlim (and set_ylim) method should not be called directly on the parasite axes. Furthermore, I don't see any reason to connect xlim_change event to the parasite axes. If there is anything you want to do when the xlim of the parasite axes change, just connect it to the host axes. If there is a case that xlim_change event should be directly connected to the parasite axes (instead of the host axes), I'll consider it as a bug and try to fix it. Regards, -JJ On Sat, May 2, 2009 at 2:03 PM, Thomas Robitaille <tho...@gm...> wrote: > > There was a typo in the script, the callbacks should be > > ax.name = "first axis" > ax.callbacks.connect('xlim_changed',check_callback) > ax.callbacks.connect('ylim_changed',check_callback) > > ax2 = ax.twin() > ax2.name = "second axis" > ax2.callbacks.connect('xlim_changed',check_callback) > ax2.callbacks.connect('ylim_changed',check_callback) > > but the problem remains: check_callback is never called for ax2. > > Tom > > -- > View this message in context: http://www.nabble.com/Enforcing-common-view-limits-tp23334325p23348806.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Hi everybody, For those of you that are using the gtk, gtkcairo, or gtkagg backends: Today pygtk version 2.15.0 became available, which is the first pygtk that can be used interactively from both python and ipython. If you're using ipython, be sure to wait for release 0.10.0 of ipython before upgrading to pygtk 2.15.0; older versions of ipython may not work correctly. If you're using regular python, you can install pygtk 2.15.0, set interactive to True in matplotlibrc, and you should be all set. Unfortunately, this won't work with IDLE; this is because of the lack of event loop support in Python itself. Enjoy! --Michiel.
Matthias Michler wrote: > Hello Eric, Hello list, > > a year ago I also encountered the problem of "one file - one figure" of the > plotfile function. I would like to propose an addional functionality of using > one figure and several files in plotfile, because sometimes I don't want to > read data myself. I added a patch including the following changes: > - added a new keywordargument to plotfile 'use_cf': If use_cf isTrue plotfile > uses fig = gcf() instead of fig = figure() to suppress opening of a new > figure and therewith allowing to use the user preferred figure > - added a further new keyword argument 'names' to set x/ylabels in the case > there are no names in the csv-file > > Furthermore I attached the modified plotfile_demo.py > (examples/pylab_examples/plotfile_demo.py) and some new data > (examples/data/data_x_x2_x3.csv). > > Could this be useful? > > Thanks in advance for any comments. Matthias, I incorporated a slight modification of your changes (newfig=False instead of use_cf=True) together with changes I made to directly support what Joseph asked about. The result is in r7078. I hesitated to make even these changes, though, because I think we should avoid trying to make plotfile into a do-all tool. It should be kept as something that may be handy for quick and dirty plotting in some situations; but when a user needs something beyond that, the better approach is for the user to simply use the pyplot or matplotlib API to achieve the desired result directly. Eric > > best regards > Matthias > > On Wednesday 29 April 2009 09:20:17 Eric Firing wrote: >> Joseph Smidt wrote: >>> Okay, I am another gnuplot user trying to migrate over to matplotlib. >>> I like what I see, but there are a couple things that are very easy to >>> do in Gnuplot that I can't figure out how to do with matplotlib. >>> >>> I have a file with 3 columns of data called data.txt that looks like: >>> >>> 0.0000 1.0000 1.0 >>> 0.0634 1.0655 1.1353 >>> 0.1269 1.1353 1.28899916094 >>> 0.1903 1.2097 1.46345358199 >>> 0.2538 1.2889 1.6615188369 >>> 0.3173 1.3734 1.88639043926 >>> ... >>> >>> I can plot this data, 2 versus 1 and 3 versus 1, very easily on the >>> same plot, with a legend, with log y values, and only for the xrange >>> between 2 and 3 with gnuplot: >>> >>> set log y >>> set xrange[2:3] >>> plot 'data.txt' u 1:2 w l t 'apples', 'data.txt' u 1:3 w l t 'oranges' >>> >>> Now, how do I do that same thing with matplotlob? Ie: >>> >>> 1. Both graphs overlayed on the same plot. >>> 2. Semilogy. (log y values), >>> 3. Only ploy for x in the range 2-3. >>> 4. Legend for the two graphs on same plot. >> Something like this: >> >> import numpy as np >> import matplotlib.pyplot as plt >> >> x, apples, oranges = np.loadtxt('data.txt', unpack=True) >> plt.semilogy(x, apples, label='apples') >> plt.semilogy(x, oranges, label='oranges') >> plt.legend() >> plt.gca().set_xlim(2, 3) >> plt.show() >> >> There are many possible variations and styles. The basic point is to >> separate reading in the data from plotting it. Plotfile won't do what >> you want because it is designed to make separate subplots instead of >> plotting multiple lines on a single axes. Maybe doing the latter would >> be at least as useful, if not more, and could be enabled as an option >> with one more kwarg. >> >> Eric >> >>> I have spent time looking through the documentation but I can't find >>> anyway to do this is any straightforward way. plotfile() looks >>> promising, but I can't seem to make it do the above. Thanks in >>> advance. >>> >>> Joseph Smidt >> --------------------------------------------------------------------------- >> --- Register Now & Save for Velocity, the Web Performance & Operations >> Conference from O'Reilly Media. Velocity features a full day of >> expert-led, hands-on workshops and two days of sessions from industry >> leaders in dedicated Performance & Operations tracks. Use code vel09scf >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Hi all, For those that are interested I have finally (now that my first batch of exams are finished) set-up a blog so that you can track the progress of the project. My blog can be found here: http://gsoc-mathtex.blogspot.com/ (no marks for originality ;). I intend to update it on a semi-regular basis, time permitting. Regards, Freddie.
On Sat, May 2, 2009 at 9:42 AM, Sandro Tosi <mo...@de...> wrote: > > Hi all! > I'd like to embed a mpl graph into a GTK application (and for that > embedding_in_gtk*.py examples are fine) but I would also like to > dynamically update the graph with time. > > Consider like if I want to plot some dynamic system information, like > cpu usage, memory occupation, or so. Than I want to gather those info > at 1 sec interval, and dynamically update the graph adding the new > values. > > How can I do it? I'm stuck with the "update data as they come" part > (please note I need for GTK embedded mpl code). The idioms in the examples/animations dir should be directly portable to an embedded gtk app, eg simple_anim_gtk.py, dynamic_image_gtkagg.py, etc. You will need to either use an idle handle, a timeout handler, or a special event in the gtk event handling framework to trigger an update to the data and draw. You can extend the gobject signals to handle custom events (eg data arrives) if you want to go this route, but since you are trying to illustrate mpl more than gtk (I assume) you may want to go the easy route and use the timeout or idle handler and just check and see if new data has arrived and then update as necessary. > > PS: if there's someone that knows how to gather cpu percentage usage > on a linux sys, please tell me :) It seems not that easy to find it > out from google ;) http://tinyurl.com/d7lkga Sorry :-) Couldn't resist (less obnoxious answer http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html) JDH