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) |
|
|
|
|
From: Ryan M. <rm...@gm...> - 2009-06-29 17:24:42
|
On Mon, Jun 29, 2009 at 12:12 PM, Gökhan SEVER <gok...@gm...>wrote: > On Mon, Jun 29, 2009 at 7:39 AM, Fabrice Silva<si...@lm...> > wrote: > > Le lundi 29 juin 2009 à 07:51 -0400, Pierre GM a écrit : > >> Check the plotting routines in scikits.timeseries > >> (pytseries.sourceforge.net), there's some zooming functions that could > >> get you started. > > > > Thanks to point to this scikit, but I looked into the lib.plotlib > > module, and I didn't manage to find something looking like the 'zoom > > effect' Chaco provides... > > > > I merely wanted to add a Polygon patch between the upper and the lower > > subplots, but using data coordinates from these axes. > > -- > > I have been wondering the same issue whether Chaco's nice zoom plot > could be made possible in Matplotlib. I don't have an answer for this > yet. If you come up with one, please let me know. Have you looked at the examples/widgets/span_selector.py demo? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
From: Fabrice S. <si...@lm...> - 2009-06-29 17:19:55
|
Le lundi 29 juin 2009 à 14:39 +0200, Fabrice Silva a écrit : > I merely wanted to add a Polygon patch between the upper and the lower > subplots, but using data coordinates from these axes. One more precision : my intent is to draw a figure 'statically', I do not need event handling, ie handling manual zoom through an interactive backend. The figure is generated from a script and directly saved without human interaction. -- Fabrice Silva <si...@lm...> LMA UPR CNRS 7051 |
From: Gökhan S. <gok...@gm...> - 2009-06-29 17:12:26
|
On Mon, Jun 29, 2009 at 7:39 AM, Fabrice Silva<si...@lm...> wrote: > Le lundi 29 juin 2009 à 07:51 -0400, Pierre GM a écrit : >> Check the plotting routines in scikits.timeseries >> (pytseries.sourceforge.net), there's some zooming functions that could >> get you started. > > Thanks to point to this scikit, but I looked into the lib.plotlib > module, and I didn't manage to find something looking like the 'zoom > effect' Chaco provides... > > I merely wanted to add a Polygon patch between the upper and the lower > subplots, but using data coordinates from these axes. > -- I have been wondering the same issue whether Chaco's nice zoom plot could be made possible in Matplotlib. I don't have an answer for this yet. If you come up with one, please let me know. In the mean time, you can take a look at: http://www.simile-widgets.org/ They have some interesting and eye-catching time-series plots for web-demonstrations. Gökhan |
From: Adam <kef...@gm...> - 2009-06-29 15:10:44
|
Thanks Jae-Joon, that worked. Adam On Mon, Jun 29, 2009 at 9:03 AM, Jae-Joon Lee<lee...@gm...> wrote: > Yes, I can reproduce this with the current svn. > > I think what's happening is that, with larger number of grid, there > is slight overlapping between each subplots (likely due to the > floating point error). Note that subplot command deletes existing axes > if they overlap with the new one. > > There would be several work-arounds. You may use non-zero spacing, eg, > 0.001 worked for me. Or, you may manually add subplots to the figure > to avoid any deletion of existing axes. > > from matplotlib.axes import Subplot > > fig = gcf() > > subplots_adjust(hspace=0.,wspace=0.) > > for i in xrange(1,65): > ax = Subplot(fig, 8, 8, i) > fig.add_subplot(ax) > plot( [0,1] ) > > Regards, > > -JJ > > > On Mon, Jun 29, 2009 at 10:29 AM, keflavich<kef...@gm...> wrote: >> >> Hi, I'm trying to make a large grid of subplots with no spacing between. The >> following code fails for any grid size larger than 6x6 by skipping a row and >> a column. >> >> for i in xrange(1,65): >> subplot(8,8,i) >> plot( [0,1] ) >> subplots_adjust(hspace=0,wspace=0) >> >> Is there a way around this problem? >> >> Thanks, >> Adam >> -- >> View this message in context: http://www.nabble.com/subplots-with-no-space-between-limited-to-6x6--tp24255224p24255224.html >> Sent from the matplotlib - users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > |
From: Jae-Joon L. <lee...@gm...> - 2009-06-29 15:03:31
|
Yes, I can reproduce this with the current svn. I think what's happening is that, with larger number of grid, there is slight overlapping between each subplots (likely due to the floating point error). Note that subplot command deletes existing axes if they overlap with the new one. There would be several work-arounds. You may use non-zero spacing, eg, 0.001 worked for me. Or, you may manually add subplots to the figure to avoid any deletion of existing axes. from matplotlib.axes import Subplot fig = gcf() subplots_adjust(hspace=0.,wspace=0.) for i in xrange(1,65): ax = Subplot(fig, 8, 8, i) fig.add_subplot(ax) plot( [0,1] ) Regards, -JJ On Mon, Jun 29, 2009 at 10:29 AM, keflavich<kef...@gm...> wrote: > > Hi, I'm trying to make a large grid of subplots with no spacing between. The > following code fails for any grid size larger than 6x6 by skipping a row and > a column. > > for i in xrange(1,65): > subplot(8,8,i) > plot( [0,1] ) > subplots_adjust(hspace=0,wspace=0) > > Is there a way around this problem? > > Thanks, > Adam > -- > View this message in context: http://www.nabble.com/subplots-with-no-space-between-limited-to-6x6--tp24255224p24255224.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: keflavich <kef...@gm...> - 2009-06-29 14:30:00
|
Hi, I'm trying to make a large grid of subplots with no spacing between. The following code fails for any grid size larger than 6x6 by skipping a row and a column. for i in xrange(1,65): subplot(8,8,i) plot( [0,1] ) subplots_adjust(hspace=0,wspace=0) Is there a way around this problem? Thanks, Adam -- View this message in context: http://www.nabble.com/subplots-with-no-space-between-limited-to-6x6--tp24255224p24255224.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Fabrice S. <si...@lm...> - 2009-06-29 13:27:35
|
Le lundi 29 juin 2009 à 07:51 -0400, Pierre GM a écrit : > Check the plotting routines in scikits.timeseries > (pytseries.sourceforge.net), there's some zooming functions that could > get you started. Thanks to point to this scikit, but I looked into the lib.plotlib module, and I didn't manage to find something looking like the 'zoom effect' Chaco provides... I merely wanted to add a Polygon patch between the upper and the lower subplots, but using data coordinates from these axes. -- Fabrice Silva <si...@lm...> LMA UPR CNRS 7051 |
From: guillaume r. <gra...@wy...> - 2009-06-29 13:14:40
|
Sandro Tosi wrote: > Hello guillaume, > > On Mon, Jun 29, 2009 at 10:53, guillaume ranquet<gra...@wy...> wrote: >> I've been asked to transform my app to something more "dynamic" >> it currently reads an xml file, it has now to read a stream of xml from >> a socket (I can handle this part :D) and plot each point as they are >> coming from the network. >> >> I'll end up having tons of points over multiple axes; I guess doing >> sonething like fig.plot(concat(old-data,new-point)) would be rather >> inefficient and I wonder if someone ever made something like this using >> matplotlib? > > You can refer to animation examples [1] for code that does what you want. > > [1] http://matplotlib.sourceforge.net/examples/animation/index.html > > at the very end, you update the line data with set_ydata() , > set_xdata() or set_data() and then call a draw() on the figure. > > Regards, oh, I knew about set_{x,y,}data() but I actually though I had to feed it the whole dataset each time. It's clear enough in the examples :) maybe the doc should be a bit more verbose? http://matplotlib.sourceforge.net/api/artist_api.html?highlight=set_ydata#matplotlib.lines.Line2D.set_ydata thanks. ---- This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. ---- |
From: Sandro T. <mat...@gm...> - 2009-06-29 13:08:32
|
Hello guillaume, On Mon, Jun 29, 2009 at 10:53, guillaume ranquet<gra...@wy...> wrote: > I've been asked to transform my app to something more "dynamic" > it currently reads an xml file, it has now to read a stream of xml from > a socket (I can handle this part :D) and plot each point as they are > coming from the network. > > I'll end up having tons of points over multiple axes; I guess doing > sonething like fig.plot(concat(old-data,new-point)) would be rather > inefficient and I wonder if someone ever made something like this using > matplotlib? You can refer to animation examples [1] for code that does what you want. [1] http://matplotlib.sourceforge.net/examples/animation/index.html at the very end, you update the line data with set_ydata() , set_xdata() or set_data() and then call a draw() on the figure. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |
From: Michael D. <md...@st...> - 2009-06-29 12:59:53
|
Are you certain you have Helvetica installed as a TrueType font? If you don't, the only way to get the Postscript Helvetica is to set "ps.useafm" to True. Cheers, Mike per freem wrote: > I just wanted to add: if i simply set the font to Arial, using > > rc('font',**{'family':'sans-serif','sans-serif':['Arial']}) > > then it works. But the same call with Helvetica still defaults to that > Bitstream/default font of matplotlib. any idea why this might be? > could matplotlib be confusing helvetica with bitstream? > > On Sun, Jun 28, 2009 at 11:28 AM, per freem <per...@gm... > <mailto:per...@gm...>> wrote: > > hi, > > i am trying to use the Helvetica font on matplotlib. i am using > mac os x (so i definitely have helvetica installed) with version > 0.98.5.2 of matplotlib. my code is: > > from scipy import * > import matplotlib > matplotlib.use('PDF') > from matplotlib import rc > import matplotlib.pyplot as plt > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) > plt.hist(rand(100)) > xlabel(r"My x axis $\alpha$") > ylabel(r"My y axis $\beta$") > > i verified that plt.rcParams gets modified to use 'Helvetica' as > the value for font.family, etc. but i still get the default font > used in all of these figures. i tried using the PS backend using > matplotlib.use('PS') but the problem persists. i am interested in > getting out PDFs that use helvetica everywhere. > > does anyone know how to fix this? thank you. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 |
From: Fabrice S. <si...@lm...> - 2009-06-29 09:50:57
|
Hello everybody, I wonder whether it is possible to produce something like the zooming plot example from http://code.enthought.com/projects/chaco/gallery.php using only matplotlib. I've done some tests, I think transforms may be helpful but I do not know ho to use them... |
From: guillaume r. <gra...@wy...> - 2009-06-29 08:54:06
|
Hi list I've been asked to transform my app to something more "dynamic" it currently reads an xml file, it has now to read a stream of xml from a socket (I can handle this part :D) and plot each point as they are coming from the network. I'll end up having tons of points over multiple axes; I guess doing sonething like fig.plot(concat(old-data,new-point)) would be rather inefficient and I wonder if someone ever made something like this using matplotlib? or any hints on where to start from? thanks :) ---- This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. ---- |
From: Jouni K. S. <jk...@ik...> - 2009-06-29 07:06:30
|
per freem <per...@gm...> writes: > i am trying to use the Helvetica font on matplotlib. i am using mac os x (so > i definitely have helvetica installed) It might be in a format that matplotlib doesn't really handle. However, Helvetica is one of the "core fonts" in PDF so if you set pdf.use14corefonts to True, you should be able to use Helvetica, and the reader application will supply the font (or approximate it with something else). This is deprecated in the latest version of the spec, but it should work just fine. > i verified that plt.rcParams gets modified to use 'Helvetica' as the value > for font.family, etc. but i still get the default font used in all of these > figures. > I just wanted to add: if i simply set the font to Arial, using > > rc('font',**{'family':'sans-serif','sans-serif':['Arial']}) > > then it works. But the same call with Helvetica still defaults to that > Bitstream/default font of matplotlib. any idea why this might be? could > matplotlib be confusing helvetica with bitstream? The font-selection system is somewhat complicated. I suggest running your script with --verbose-debug with both Arial and Helvetica as the value of font.sans-serif, and diffing the outputs to see what is going on. I suspect that Arial is a TTF file while Helvetica is in some Mac-specific format. The best solution would be to make matplotlib handle those formats, but probably the most practical solution is to use something like fondu to convert the font into TTF: http://fondu.sourceforge.net/ -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Jarrod M. <mi...@be...> - 2009-06-29 07:00:47
|
I am pleased to announce that the Python Software Foundation is sponsoring 10 students' travel, registration, and accommodation for the SciPy 2009 conference (Aug. 18-23). The focus of the conference is both on scientific libraries and tools developed with Python and on scientific or engineering achievements using Python. If you're in college or a graduate program, please check out the details here: http://conference.scipy.org/student-funding About the conference -------------------- SciPy 2009, the 8th Python in Science conference, will be held from August 18-23, 2009 at Caltech in Pasadena, CA, USA. The conference starts with two days of tutorials to the scientific Python tools. There will be two tracks, one for introduction of the basic tools to beginners, and one for more advanced tools. The tutorials will be followed by two days of talks. Both days of talks will begin with a keynote address. The first day’s keynote will be given by Peter Norvig, the Director of Research at Google; while, the second keynote will be delivered by Jon Guyer, a Materials Scientist in the Thermodynamics and Kinetics Group at NIST. The program committee will select the remaining talks from submissions to our call for papers. All selected talks will be included in our conference proceedings edited by the program committee. After the talks each day we will provide several rooms for impromptu birds of a feather discussions. Finally, the last two days of the conference will be used for a number of coding sprints on the major software projects in our community. For the 8th consecutive year, the conference will bring together the developers and users of the open source software stack for scientific computing with Python. Attendees have the opportunity to review the available tools and how they apply to specific problems. By providing a forum for developers to share their Python expertise with the wider commercial, academic, and research communities, this conference fosters collaboration and facilitates the sharing of software components, techniques, and a vision for high level language use in scientific computing. For further information, please visit the conference homepage: http://conference.scipy.org. Important Dates --------------- * Friday, July 3: Abstracts Due * Friday, July 10: Announce accepted talks, post schedule * Friday, July 10: Early Registration ends * Tuesday-Wednesday, August 18-19: Tutorials * Thursday-Friday, August 20-21: Conference * Saturday-Sunday, August 22-23: Sprints * Friday, September 4: Papers for proceedings due Executive Committee ------------------- * Jarrod Millman, UC Berkeley, USA (Conference Chair) * Gaël Varoquaux, INRIA Saclay, France (Program Co-Chair) * Stéfan van der Walt, University of Stellenbosch, South Africa (Program Co-Chair) * Fernando Pérez, UC Berkeley, USA (Tutorial Chair) |
From: Michiel de H. <mjl...@ya...> - 2009-06-29 02:44:12
|
--- On Sun, 6/28/09, Jouni K. Seppänen <jk...@ik...> wrote: > The file you sent was not generated by the pdf backend but > by "Mac OS X 10.5.6 Quartz PDFContext", which probably means > that the OS X backend saves pdf files using the OS X machinery > and not the pdf backend. Indeed the formulas look like bitmaps. Previously the Mac OS X backend indeed used its own machinery to create PDF files. Recent versions of the backend in SVN, however, use matplotlib's pdf backend. So the problem should go away if you use matplotlib from SVN. The Mac OS X backend itself can actually be fixed to use vector graphics on screen instead of bitmaps. That will need some time, but I'll get round to it one of these weeks. --Michiel. |
From: Chris S. <chr...@gm...> - 2009-06-28 20:42:21
|
Awesome, thanks. That works perfectly. Chris On Sun, Jun 28, 2009 at 12:16 AM, Jae-Joon Lee<lee...@gm...> wrote: > sorry. > As guillaume has mentioned, you need to install mpl from svn. > > Here is some workaround you can try. I guess it would work with 0.98.5.3. > Basically, you create a separate axes for a legend. > > ax1 = axes([0.1, 0.2,0.8, 0.7]) > p1, = ax1.plot([1,2,3]) > p2, = ax1.plot([3,2,1]) > > ax2 = axes([0.1, 0.1, 0.8, 0.01], frameon=False) > ax2.xaxis.set_visible(False) > ax2.yaxis.set_visible(False) > l = ax2.legend([p1, p2], ["Legend1", "Legend2"], mode="expand", ncol=2, > borderaxespad=0.) > > > -JJ > > > > On Sat, Jun 27, 2009 at 6:00 PM, Chris Spencer<chr...@gm...> wrote: >> Thanks. Is that some sort of blending edge feature? I just installed >> 0.98.5.3, but the sample code gives me the error: >> >> TypeError: __init__() got an unexpected keyword argument 'bbox_to_anchor' >> >> On Thu, Jun 25, 2009 at 10:20 PM, Jae-Joon Lee<lee...@gm...> wrote: >>> The linked page below shows how you put the legend above the graph. >>> >>> http://matplotlib.sourceforge.net/users/plotting/legend.html#legend-location >>> >>> You can put it below the axes by adjusting the bbox_to_anchor parameter. >>> Try something like >>> bbox_to_anchor=(0., -0.1, 1., -0.1), loc=1 >>> >>> Make sure to adjust the suplot parameter (or axes location) to make >>> enough room for the legend. >>> >>> -JJ >>> >>> >>> >>> On Thu, Jun 25, 2009 at 9:22 PM, Chris Spencer<chr...@gm...> wrote: >>>> How do you show the legend below the graph, so it doesn't overlap at >>>> all with the graph? The docs for the legend() "loc" parameter only >>>> seem to specify where *on* the graph you want it to show, which is >>>> driving me nuts because even using "best", it usually hides some of my >>>> data. >>>> >>>> I want to see *all* of my graph, as well as the legend. Is there any >>>> way to do this with pylab? >>>> >>>> Any help is appreciated. >>>> >>>> Chris >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>> >> > |
From: David G. <da...@gu...> - 2009-06-28 18:42:21
|
Hi matplotlib_users ! I'm David from Berlin, and believe I'm experiencing some problem with the SubplotHost module: I'm generating graphs from hudge databases of cpu and ethernet statistics, and I wanted to mix several graphs concerning ethernet statistics in the same figure, with time as x axis, and bytes-in, bytes-out, packets-in, packets-out and number of collisions as three different y axes, with three different scale. I took the inspiration from for the x axes and from http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html for the y axes The following code is a synthetic reproduction of the problem I'm experiencing (it is also attached): from matplotlib.dates import date2num from matplotlib import pyplot from matplotlib import pylab from mpl_toolkits.axes_grid.parasite_axes import SubplotHost from datetime import datetime dates = [ 733581.20833333337, 733581.20837962965, 733581.20842592593, 733581.20847222221, 733581.20851851848, 733581.20855324075, 733581.20858796302, 733581.2086342593, 733581.20866898145, 733581.20871527772] rxB = [054L, 130L, 144L, 54L, 36L, 9L, 35L, 43L, 85L, 43L] txB = [4L, 9L, 9L, 5L, 4L, 4L, 4L, 5L, 6L, 5L] rxP = [77, 228, 251, 112, 77, 42, 75, 97, 147, 91] txP = [61, 177, 188, 90, 61, 40, 64, 76, 113, 77] col = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] ethPlot = pyplot fig = ethPlot.figure() host = SubplotHost(fig, 111) host.set_ylabel("kB/s") host.set_xlabel("Time") par1 = host.twinx() par2 = host.twinx() par1.set_ylabel("Packets/s") par2.axis["right"].set_visible(False) offset = 60, 0 new_axisline = par2.get_grid_helper().new_fixed_axis par2.axis["right2"] = new_axisline(loc="right", axes=par2, offset=offset) par2.axis["right2"].label.set_visible(True) par2.axis["right2"].set_label("Collisions") par1.set_ylim(0, 6000) par2.set_ylim(0, 7000) host.axis([ dates[0], ( dates[0] + 0.041 ), -7000, 7000]) par1.axis([ dates[0], ( dates[0] + 0.041 ), -10000, 10000]) par2.axis([ dates[0], ( dates[0] + 0.041 ), -700, 700]) fig.add_axes(host) ethPlot.subplots_adjust(right=0.75) drawRxByt, = host.plot_date(dates, rxB, 'g', tz=None, xdate=True, ydate=False, label="kB/s in") drawTxByt, = host.plot_date(dates, txB, 'b', tz=None, xdate=True, ydate=False, label="kB/s out") drawRxPaq, = par1.plot_date(dates, rxP, 'm', tz=None, xdate=True, ydate=False, label="packets/s in") drawTxPaq, = par1.plot_date(dates, txP, 'y', tz=None, xdate=True, ydate=False, label="packets/s out") drawColls, = par2.plot_date(dates, col, 'r', tz=None, xdate=True, ydate=False, label="collisions") fig.autofmt_xdate() host.set_xlabel("Time") host.set_ylabel("kB/s") par1.set_ylabel("Packets/s") host.legend() host.axis["left"].label.set_color(drawRxByt.get_color()) host.axis["left"].label.set_color(drawTxByt.get_color()) par1.axis["right"].label.set_color(drawRxPaq.get_color()) par1.axis["right"].label.set_color(drawtxPaq.get_color()) par2.axis["right2"].label.set_color(drawColls.get_color()) ethPlot.draw() pylab.savefig( './test.png', dpi=(640/8)) Maybe I do something wrong somewhere here, but other scripts that do the same for a single graphwork like a charm. So it's not a question of dataType or something. To compare with a working code, here is the first version of the fuction that does the job on single graphs without any problem : def drawEthGraph(filename, hdates, rxP, txP, rxB, txB, col): ethPlot = pyplot fig = ethPlot.figure() ax = fig.add_subplot(111) ax.plot_date(hdates, rxP, 'g', None, True, False) ax.plot_date(hdates, txP, 'b', None, True, False) ax.plot_date(hdates, rxB, 'g', None, True, False) ax.plot_date(hdates, txB, 'b', None, True, False) ax.plot_date(hdates, col, 'r', None, True, False) ax.axis([ hdates[0], ( hdates[0] + 0.042 ), -7000, 7000]) ax.grid(True) fig.autofmt_xdate() pylab.savefig( filename, dpi=(640/8)) I don't think I understand the whole process of generation, but I thought at least at the beginnig I was having a good feeling with this API. Now I wonder how to go around this. Maybe you'll have an idea :-o Best regards DvD |
From: per f. <per...@gm...> - 2009-06-28 15:51:38
|
I just wanted to add: if i simply set the font to Arial, using rc('font',**{'family':'sans-serif','sans-serif':['Arial']}) then it works. But the same call with Helvetica still defaults to that Bitstream/default font of matplotlib. any idea why this might be? could matplotlib be confusing helvetica with bitstream? On Sun, Jun 28, 2009 at 11:28 AM, per freem <per...@gm...> wrote: > hi, > > i am trying to use the Helvetica font on matplotlib. i am using mac os x > (so i definitely have helvetica installed) with version 0.98.5.2 of > matplotlib. my code is: > > from scipy import * > import matplotlib > matplotlib.use('PDF') > from matplotlib import rc > import matplotlib.pyplot as plt > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) > plt.hist(rand(100)) > xlabel(r"My x axis $\alpha$") > ylabel(r"My y axis $\beta$") > > i verified that plt.rcParams gets modified to use 'Helvetica' as the value > for font.family, etc. but i still get the default font used in all of these > figures. i tried using the PS backend using matplotlib.use('PS') but the > problem persists. i am interested in getting out PDFs that use helvetica > everywhere. > > does anyone know how to fix this? thank you. > |
From: per f. <per...@gm...> - 2009-06-28 15:29:51
|
hi, i am trying to use the Helvetica font on matplotlib. i am using mac os x (so i definitely have helvetica installed) with version 0.98.5.2 of matplotlib. my code is: from scipy import * import matplotlib matplotlib.use('PDF') from matplotlib import rc import matplotlib.pyplot as plt rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) plt.rcParams['font.family'] = 'Helvetica' plt.hist(rand(100)) xlabel(r"My x axis $\alpha$") ylabel(r"My y axis $\beta$") i verified that plt.rcParams gets modified to use 'Helvetica' as the value for font.family, etc. but i still get the default font used in all of these figures. i tried using the PS backend using matplotlib.use('PS') but the problem persists. i am interested in getting out PDFs that use helvetica everywhere. does anyone know how to fix this? thank you. |
From: Jouni K. S. <jk...@ik...> - 2009-06-28 14:06:11
|
per freem <per...@gm...> writes: > you're right, i don't need to use "usetex" -- i removed it, but the problem > still persists. here is the pdf that it generates (code below). any idea > what is happening here? thanks very much for your help. The file you sent was not generated by the pdf backend but by "Mac OS X 10.5.6 Quartz PDFContext", which probably means that the OS X backend saves pdf files using the OS X machinery and not the pdf backend. Indeed the formulas look like bitmaps. > from scipy import * > import matplotlib.pyplot as plt > from matplotlib import rc > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) > import matplotlib > matplotlib.use('PDF') You are trying to use the pdf backend, but the last line quoted above has no effect because you have already imported pyplot, which causes the backend to be set as directed by your matplotlibrc file. Any call to matplotlib.use needs to be done before you import pyplot. -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Jouni K. S. <jk...@ik...> - 2009-06-28 09:33:23
|
per freem <per...@gm...> writes: > i am using matplotlib 0.98.5.2 on Mac OS X. i am plotting a histogram > and then saving it as .pdf. The x and y labels use some symbols from > latex, and i have useTex set to true in my rcParams. Do you really need usetex? Matplotlib's usual mathtext engine is pretty good and doesn't require any external programs. > The problem is that myfig.pdf for some reason renders the figure's x > and y labels as *images* rather than vector graphics. Could you send the resulting pdf file to me off-list? -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Jae-Joon L. <lee...@gm...> - 2009-06-28 04:16:29
|
sorry. As guillaume has mentioned, you need to install mpl from svn. Here is some workaround you can try. I guess it would work with 0.98.5.3. Basically, you create a separate axes for a legend. ax1 = axes([0.1, 0.2,0.8, 0.7]) p1, = ax1.plot([1,2,3]) p2, = ax1.plot([3,2,1]) ax2 = axes([0.1, 0.1, 0.8, 0.01], frameon=False) ax2.xaxis.set_visible(False) ax2.yaxis.set_visible(False) l = ax2.legend([p1, p2], ["Legend1", "Legend2"], mode="expand", ncol=2, borderaxespad=0.) -JJ On Sat, Jun 27, 2009 at 6:00 PM, Chris Spencer<chr...@gm...> wrote: > Thanks. Is that some sort of blending edge feature? I just installed > 0.98.5.3, but the sample code gives me the error: > > TypeError: __init__() got an unexpected keyword argument 'bbox_to_anchor' > > On Thu, Jun 25, 2009 at 10:20 PM, Jae-Joon Lee<lee...@gm...> wrote: >> The linked page below shows how you put the legend above the graph. >> >> http://matplotlib.sourceforge.net/users/plotting/legend.html#legend-location >> >> You can put it below the axes by adjusting the bbox_to_anchor parameter. >> Try something like >> bbox_to_anchor=(0., -0.1, 1., -0.1), loc=1 >> >> Make sure to adjust the suplot parameter (or axes location) to make >> enough room for the legend. >> >> -JJ >> >> >> >> On Thu, Jun 25, 2009 at 9:22 PM, Chris Spencer<chr...@gm...> wrote: >>> How do you show the legend below the graph, so it doesn't overlap at >>> all with the graph? The docs for the legend() "loc" parameter only >>> seem to specify where *on* the graph you want it to show, which is >>> driving me nuts because even using "best", it usually hides some of my >>> data. >>> >>> I want to see *all* of my graph, as well as the legend. Is there any >>> way to do this with pylab? >>> >>> Any help is appreciated. >>> >>> Chris >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> > |
From: per f. <per...@gm...> - 2009-06-28 01:30:26
|
hi all, i am using matplotlib 0.98.5.2 on Mac OS X. i am plotting a histogram and then saving it as .pdf. The x and y labels use some symbols from latex, and i have useTex set to true in my rcParams. The code is: import matplotlib.pyplot as plt my_fig = plt.figure(figsize=(5,5)), dpi=100) plt.hist(rand(100), 10) plt.xlabel(r"\alpha") plt.ylabel(r"\beta\kappa") plt.savefig('myfig.pdf') The problem is that myfig.pdf for some reason renders the figure's x and y labels as *images* rather than vector graphics. Strangely, the labels of the units on the x and y axes are rendered as vector fonts correctly as they should -- it is only the x and y labels that somehow are wrongly generated as images. how can i make it so everything is generated as a vector graphic in this pdf? thanks very much. i am attaching my rcParams settings below in case it helps: {'agg.path.chunksize': 0, 'axes.axisbelow': False, 'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.formatter.limits': [-7, 7], 'axes.grid': False, 'axes.hold': True, 'axes.labelcolor': 'k', 'axes.labelsize': 'medium', 'axes.linewidth': 1.0, 'axes.titlesize': 'large', 'axes.unicode_minus': True, 'backend': 'MacOSX', 'backend_fallback': True, 'cairo.format': 'png', 'contour.negative_linestyle': 'dashed', 'datapath': '/Library/Python/2.5/site-packages/matplotlib/mpl-data', 'docstring.hardcopy': False, 'figure.autolayout': False, 'figure.dpi': 80, 'figure.edgecolor': 'w', 'figure.facecolor': '0.75', 'figure.figsize': [8.0, 6.0], 'figure.subplot.bottom': 0.10000000000000001, 'figure.subplot.hspace': 0.20000000000000001, 'figure.subplot.left': 0.125, 'figure.subplot.right': 0.90000000000000002, 'figure.subplot.top': 0.90000000000000002, 'figure.subplot.wspace': 0.20000000000000001, 'font.cursive': ['Apple Chancery', 'Textile', 'Zapf Chancery', 'Sand', 'cursive'], 'font.family': 'sans-serif', 'font.fantasy': ['Comic Sans MS', 'Chicago', 'Charcoal', 'ImpactWestern', 'fantasy'], 'font.monospace': ['Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Andale Mono', 'Nimbus Mono L', 'Courier New', 'Courier', 'Fixed', 'Terminal', 'monospace'], 'font.sans-serif': ['Helvetica'], 'font.serif': ['Bitstream Vera Serif', 'DejaVu Serif', 'New Century Schoolbook', 'Century Schoolbook L', 'Utopia', 'ITC Bookman', 'Bookman', 'Nimbus Roman No9 L', 'Times New Roman', 'Times', 'Palatino', 'Charter', 'serif'], 'font.size': 12.0, 'font.stretch': 'normal', 'font.style': 'normal', 'font.variant': 'normal', 'font.weight': 'normal', 'grid.color': 'k', 'grid.linestyle': ':', 'grid.linewidth': 0.5, 'image.aspect': 'equal', 'image.cmap': 'jet', 'image.interpolation': 'bilinear', 'image.lut': 256, 'image.origin': 'upper', 'image.resample': False, 'interactive': False, 'legend.axespad': 0.5, 'legend.borderaxespad': 0.5, 'legend.borderpad': 0.40000000000000002, 'legend.columnspacing': 2.0, 'legend.fancybox': False, 'legend.fontsize': 'large', 'legend.handlelen': 0.050000000000000003, 'legend.handlelength': 2.0, 'legend.handletextpad': 0.80000000000000004, 'legend.handletextsep': 0.02, 'legend.isaxes': True, 'legend.labelsep': 0.01, 'legend.labelspacing': 0.5, 'legend.loc': 'upper right', 'legend.markerscale': 1.0, 'legend.numpoints': 2, 'legend.pad': 0, 'legend.shadow': False, 'lines.antialiased': True, 'lines.color': 'b', 'lines.dash_capstyle': 'butt', 'lines.dash_joinstyle': 'miter', 'lines.linestyle': '-', 'lines.linewidth': 1.0, 'lines.marker': 'None', 'lines.markeredgewidth': 0.5, 'lines.markersize': 6, 'lines.solid_capstyle': 'projecting', 'lines.solid_joinstyle': 'miter', 'maskedarray': False, 'mathtext.bf': 'serif:bold', 'mathtext.cal': 'cursive', 'mathtext.fallback_to_cm': True, 'mathtext.fontset': 'cm', 'mathtext.it': 'serif:italic', 'mathtext.rm': 'serif', 'mathtext.sf': 'sans\\-serif', 'mathtext.tt': 'monospace', 'numerix': 'numpy', 'patch.antialiased': True, 'patch.edgecolor': 'k', 'patch.facecolor': 'b', 'patch.linewidth': 1.0, 'path.simplify': False, 'pdf.compression': 6, 'pdf.fonttype': 3, 'pdf.inheritcolor': False, 'pdf.use14corefonts': False, 'plugins.directory': '.matplotlib_plugins', 'polaraxes.grid': True, 'ps.distiller.res': 6000, 'ps.fonttype': 3, 'ps.papersize': 'letter', 'ps.useafm': False, 'ps.usedistiller': False, 'savefig.dpi': 100, 'savefig.edgecolor': 'w', 'savefig.facecolor': 'w', 'savefig.orientation': 'portrait', 'svg.embed_char_paths': True, 'svg.image_inline': True, 'svg.image_noscale': False, 'text.color': 'k', 'text.dvipnghack': None, 'text.fontangle': 'normal', 'text.fontsize': 'medium', 'text.fontstyle': 'normal', 'text.fontvariant': 'normal', 'text.fontweight': 'normal', 'text.latex.preamble': [''], 'text.latex.unicode': False, 'text.usetex': False, 'timezone': 'UTC', 'tk.pythoninspect': False, 'tk.window_focus': False, 'toolbar': 'toolbar2', 'units': False, 'verbose.fileo': 'sys.stdout', 'verbose.level': 'silent', 'xtick.color': 'k', 'xtick.direction': 'in', 'xtick.labelsize': 'medium', 'xtick.major.pad': 4, 'xtick.major.size': 4, 'xtick.minor.pad': 4, 'xtick.minor.size': 2, 'ytick.color': 'k', 'ytick.direction': 'in', 'ytick.labelsize': 'medium', 'ytick.major.pad': 4, 'ytick.major.size': 4, 'ytick.minor.pad': 4, 'ytick.minor.size': 2} |
From: Chris S. <chr...@gm...> - 2009-06-27 22:00:12
|
Thanks. Is that some sort of blending edge feature? I just installed 0.98.5.3, but the sample code gives me the error: TypeError: __init__() got an unexpected keyword argument 'bbox_to_anchor' On Thu, Jun 25, 2009 at 10:20 PM, Jae-Joon Lee<lee...@gm...> wrote: > The linked page below shows how you put the legend above the graph. > > http://matplotlib.sourceforge.net/users/plotting/legend.html#legend-location > > You can put it below the axes by adjusting the bbox_to_anchor parameter. > Try something like > bbox_to_anchor=(0., -0.1, 1., -0.1), loc=1 > > Make sure to adjust the suplot parameter (or axes location) to make > enough room for the legend. > > -JJ > > > > On Thu, Jun 25, 2009 at 9:22 PM, Chris Spencer<chr...@gm...> wrote: >> How do you show the legend below the graph, so it doesn't overlap at >> all with the graph? The docs for the legend() "loc" parameter only >> seem to specify where *on* the graph you want it to show, which is >> driving me nuts because even using "best", it usually hides some of my >> data. >> >> I want to see *all* of my graph, as well as the legend. Is there any >> way to do this with pylab? >> >> Any help is appreciated. >> >> Chris >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > |
From: John H. <jd...@gm...> - 2009-06-27 13:18:17
|
On Sat, Jun 27, 2009 at 1:44 AM, LB<bra...@gm...> wrote: > I thing there should be some links on the web pages to download theses > files. > At least, it should be said in the docstring where to find them, don't you > think ? It would be a good idea -- but for now you can grab the source distribution *.tar.gz from the download page and look in the "examples" subdirectory. All the code, data and support files are there (the web examples are automatically built from this directory). If you are on a linux/unix box or any box that has an svn client, the easiest way is to just check out:: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib cd mpl/examples or if you just want the examples rather than the whole source tree:: > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib/examples mpl_examples but I suggest getting the source because some of the examples only run on svn and you may want to install from svn to use them http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn JDH |