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
|
2
(1) |
3
(1) |
4
(6) |
5
(12) |
6
(13) |
7
|
|
8
(2) |
9
(21) |
10
(19) |
11
(2) |
12
(9) |
13
(22) |
14
(1) |
|
15
(1) |
16
(12) |
17
(5) |
18
(6) |
19
(7) |
20
(13) |
21
(6) |
|
22
(3) |
23
(14) |
24
(15) |
25
(7) |
26
(16) |
27
(7) |
28
(6) |
|
29
(1) |
30
(12) |
31
(3) |
|
|
|
|
|
From: Willi R. <w.r...@gm...> - 2006-10-20 12:41:21
|
Hi, I am plotting two graphs in one according to http://matplotlib.sourceforge.net/examples/two_scales.py I want the plot belonging to the right axis to start with y=0. However, ax2.set_ylim(ymin=0.0) does not affect the plot at all. Any hints? Regards, wr |
|
From: Eric F. <ef...@ha...> - 2006-10-20 00:45:33
|
Khem Raj wrote: > Hi > > I have been trying to plot a matrix and want to start from top left > corner. I tried to use 'matshow' and it worked the way I wanted but > that could not satisfy other needs like I needed to plot something > else over the matrix and also needed shading='faceted' which I could > not set using matshow matshow calls imshow. You should be able to plot on top of an image made by matshow or imshow, so I don't know what the problem was with that. > > So I tried to use 'pcolor' where shading is faceted by default and I > could plot other stuff on top ofI the matrix image but I could not get > the origin='upper' working with pcolor. I also tried with imshow but > it did the same thing. pcolor does not have an 'origin' kwarg but imshow does, so I don't understand your last sentence above. For pcolor you need to either rearrange your matrix (e.g., 'pcolor(flipud(Z))') or call pcolor with X and Y arguments as well as Z. Eric |
|
From: CL <ane...@gm...> - 2006-10-19 22:05:52
|
Hi, group,
I am wondering if matplotlib can make a plot look like the
attached one. Basically, the y-axis was collapsed to show both one
extreme value and the rest of smaller values.
Thanks.
Chunlei
|
|
From: <hu...@ya...> - 2006-10-19 19:00:26
|
CS=3Dpylab.contour(X,Y,Z) pylab.clabel(CS, inline=3D1, fontsize=3D10) Le mercredi 18 octobre 2006 17:03, zh...@um... a =E9crit=A0: > HI, all: > How to label the each line by the corresponding values in the contour plo= t? > Thanks! > |
|
From: Khem R. <raj...@gm...> - 2006-10-19 15:58:49
|
you can use draw() On 10/19/06, Esdras Caleb <ach...@gm...> wrote: > There is some command to replot the grafic? > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > |
|
From: Esdras C. <ach...@gm...> - 2006-10-19 15:22:18
|
There is some command to replot the grafic? |
|
From: Khem R. <raj...@gm...> - 2006-10-19 10:01:28
|
Hi I have been trying to plot a matrix and want to start from top left corner. I tried to use 'matshow' and it worked the way I wanted but that could not satisfy other needs like I needed to plot something else over the matrix and also needed shading='faceted' which I could not set using matshow So I tried to use 'pcolor' where shading is faceted by default and I could plot other stuff on top ofI the matrix image but I could not get the origin='upper' working with pcolor. I also tried with imshow but it did the same thing. I tried both lower and upper values and results come out same the array starts plotting from bottom left. I am using 0.87.6 and python 2.4.3 Has anybody seen this problem ? Is there usage error? |
|
From: Derek H. <DH...@cs...> - 2006-10-19 07:44:26
|
Stefan =20 Here is short test program: =20 from pylab import * import windrose figure(figsize=3D(8,8)) vVeloc =3D [ 0.2, 0.08, 0.2, 0.35, 0.09, 0.45, 0.5, 0.2, 0.33, 0.44, 0.22, = 0.07 ] vDir =3D [ 65., 58., 59., 74., 231., 168., 183., 166., 214., 255., 60., 62= .] freq,ax=3Dwindrose.windplot(vVeloc,vDir,counts=3DFalse,speed_classes=3D[0.0= , 0.1,0.2,0.3,0.4],sectors=3D8,labangle=3D66,style=3D'bar2') fig=3Dax.get_figure() for leg in fig.legends: setp(leg.get_texts(), fontsize=3D8) draw() show() =20 The plot does "look better" as you add more data.... =20 Derek >>> Stefan van der Walt <st...@su...> 2006/10/18 06:11:23 PM >>> On Wed, Oct 18, 2006 at 05:57:55PM +0200, Lionel Roubeyrie wrote: > Hi Derek, > happy to see you use it, here is windrose0.5 with some improvments :-) I'd like to see what the latest version does -- can you post a segment of code that demonstrates? Cheers St=E9fan ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1= 21642=20 _______________________________________________ Matplotlib-users mailing list Mat...@li...=20 https://lists.sourceforge.net/lists/listinfo/matplotlib-users=20 --=20 This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. =20 CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html=20 =20 CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html=20 =20 For electronic copies of the CSIR Copyright, Terms and Conditions and the C= SIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to Cal...@cs.... This message has been scanned for viruses and dangerous content by MailScan= ner,=20 and is believed to be clean. |
|
From: Lionel R. <lro...@li...> - 2006-10-19 07:10:42
|
St=E9fan, here it is : import windrose ax=3Dsubplot(221,polar=3DTrue) freq,ax=3Dwindrose.windplot(vents['VV'],vents['DV'],speed_classes=3D[1,2,3,= 4,5],counts=3DFalse,sectors=3D18,style=3D'bar',axes=3Dax) ax=3Dsubplot(222,polar=3DTrue) freq,ax=3Dwindrose.windplot(vents['VV'],vents['DV'],speed_classes=3D[1,2,3,= 4,5],counts=3DFalse,sectors=3D18,style=3D'bar',axes=3Dax,nolegend=3DTrue,op= ening=3D0.5,labangle=3D-90) ax=3Dsubplot(223,polar=3DTrue) freq,ax=3Dwindrose.windplot(vents['VV'],vents['DV'],speed_classes=3D[1,2,3,= 4,5],counts=3DTrue,sectors=3D18,style=3D'bar2',axes=3Dax,nolegend=3DTrue,la= bangle=3D-90) ax=3Dsubplot(224,polar=3DTrue) freq,ax=3Dwindrose.windplot(vents['VV'],vents['DV'],speed_classes=3D[1,2,3,= 4,5],counts=3DTrue,sectors=3D18,style=3D'line',axes=3Dax,nolegend=3DTrue,la= bangle=3D-30) setp(ax.rgridlabels, fontsize=3D6) Lionel Le mercredi 18 octobre 2006 18:11, Stefan van der Walt a =E9crit=A0: > On Wed, Oct 18, 2006 at 05:57:55PM +0200, Lionel Roubeyrie wrote: > > Hi Derek, > > happy to see you use it, here is windrose0.5 with some improvments :-) > > I'd like to see what the latest version does -- can you post a segment > of code that demonstrates? > > Cheers > St=E9fan > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users =2D-=20 Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
|
From: <zh...@um...> - 2006-10-18 21:04:03
|
HI, all: How to label the each line by the corresponding values in the contour plot? Thanks! |
|
From: Stefan v. d. W. <st...@su...> - 2006-10-18 16:12:01
|
On Wed, Oct 18, 2006 at 05:57:55PM +0200, Lionel Roubeyrie wrote: > Hi Derek, > happy to see you use it, here is windrose0.5 with some improvments :-) I'd like to see what the latest version does -- can you post a segment of code that demonstrates? Cheers St=E9fan |
|
From: Lionel R. <lro...@li...> - 2006-10-18 15:59:04
|
Hi Derek,
happy to see you use it, here is windrose0.5 with some improvments :-)
> * do not outline the colors in black; its hard to see smaller/shorter
> lines
Done
> * the % labels need either to go along a vector NOT used to draw data,
> or
> be drawn last (on top of data); or a combination of both
Now "%" is set with the external label. I don't find how to set labels (and
grids) above patches, ax.set_axisbelow(False) doesn't work :-( But for the
moment you can use labangle parameter to move the labels.
> * the 0.0% label can probably be omitted from the centre
> * drawing a title("") on the plot is still problematic (it overwrites
> the "N" in some cases)
0.0 is not longer draw
> * default background color should be white
Hum, everybody can set it directly from matplotlibrc or creating an polar axis
before.
> * a legend title will *very* useful
Waiting for polar axes legend improvments :-)
>
> And a question - is it possible to restrict the plot to a portion of
> the area;
> say to the left, with a "rectangle" of the space available to the
> right; or
> up to the top, with a "rectangle" of the space available to the
> bottom.
> Plots often have to annotated and its useful to have some working
> space
> to do this.
Don't know if I really understand what you want, but why don't you use subplot
to split your figures?
>
> Thanks for all the good work!
> Derek
>PS Does anyone else using this program get the strange "[" and "]"
>signs around the data ranges in the legend - how can this be turned off?
You're the first saying you use it :-)
Maybe differents progs versions. I use:
|datas|[42]>matplotlib.__version__
Out [42]:'0.87.5'
|datas|[43]>scipy.__version__
Out [43]:'0.5.1'
|datas|[44]>numpy.__version__
Out [44]:'1.0b5'
Lionel
--
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
|
|
From: Derek H. <DH...@cs...> - 2006-10-18 14:40:19
|
Lionel
Improving with each version! A few small tweaks:
* do not outline the colors in black; its hard to see smaller/shorter
lines
* the % labels need either to go along a vector NOT used to draw data,
or
be drawn last (on top of data); or a combination of both
* the 0.0% label can probably be omitted from the centre
* drawing a title("") on the plot is still problematic (it overwrites
the "N" in
some cases)
* default background color should be white
* a legend title will *very* useful
And a question - is it possible to restrict the plot to a portion of
the area;
say to the left, with a "rectangle" of the space available to the
right; or
up to the top, with a "rectangle" of the space available to the
bottom.
Plots often have to annotated and its useful to have some working
space
to do this.
Thanks for all the good work!
Derek
PS Does anyone else using this program get the strange "[" and "]"
signs
around the data ranges in the legend - how can this be turned off?
>>> Lionel Roubeyrie <lro...@li...> 2006/10/13 04:06:43 PM
>>>
Hi all,
after some suggestions, here is the latest version of windrose. Now,
keywords
args are passed by **kwargs, "bar" style have a "opening" arg for
controlling
the sectors angles, legends are positionned with "legendloc" and their
size
with "legendsize", and box are not displayed anymore.
Hope you find it usefull, any comments welcome.
Cordialement
--
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
Cal...@cs....
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
|
|
From: John H. <jdh...@ac...> - 2006-10-18 13:41:54
|
>>>>> "Xavier" == Xavier Gnata <gn...@ob...> writes:
Xavier> Hi, I'm using matplotlib svn. It looks like matplotlibrc
Xavier> from http://matplotlib.sourceforge.net/matplotlibrc is not
Xavier> up-to-date :
Well, in general the one on the web should track the latest release
and not svn, but thanks for the tip. We've recently decided to go to
a "commented out" matplotlibrc so people will simply get the defaults
set by __init__.py. This will result in fewer warnings for naive
users who never change rc but end up with stale files. The only two
options that are on by default are backend and numerix (which are set
at build time based on your local environment).
I've updated the web file with these changes.
Cheers,
JDH
|
|
From: Xavier G. <gn...@ob...> - 2006-10-18 13:30:58
|
Hi, I'm using matplotlib svn. It looks like matplotlibrc from http://matplotlib.sourceforge.net/matplotlibrc is not up-to-date : Bad key "lines.markeredgecolor" on line 48 in /home/gnata/.matplotlib/matplotlibrc. You probably need to get an updated matplotlibrc file from http://matplotlib.sf.net/matplotlibrc or from the matplotlib source distribution Bad key "lines.markerfacecolor" on line 47 in /home/gnata/.matplotlib/matplotlibrc. You probably need to get an updated matplotlibrc file from http://matplotlib.sf.net/matplotlibrc or from the matplotlib source distribution Where can we get the new one? Thanks for your work on matplotlib, Xavier. -- ############################################ Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: gn...@ob... ############################################ |
|
From: Khem R. <raj...@gm...> - 2006-10-17 18:47:32
|
Hi I am new to matplotlib and I am trying to use it to draw a matrix. I would want to give a different color to each box depending upon the value this matrix element has Could someone help me in quick start meanwhile I am looking into documentation. Thanks khem |
|
From: Darren D. <dd...@co...> - 2006-10-17 16:15:27
|
What MPL version are you using, and what non-standard rc settings are you
using? You must be using either usetex or ps.usedistiller, because
ghostscript is failing to produce a distilled file.
I just fixed a bug in the error report, please update from svn or change line
1333 in backend_ps.py to read:
if exit_status: raise RuntimeError('pdftops was not able to process your \
image.\nHere is the full report generated by pdftops: \n\n' + fh.read())
My experience has been that ghostscript fails like this when you are using the
usetex option, and your latex syntax is incorrect. Latex may not exit with an
error status, even though it encountered a problem, and the bad output is
propagated downstream to dvips and ghostscript. If you want a more specific
answer, please provide a specific example that produces your result.
Darren
On Tuesday 17 October 2006 11:50, Humufr wrote:
> did you try to fix the size of the figure and the dpi?
>
> N.
>
> Eric Emsellem wrote:
> > Hi,
> >
> > I have a problem saving eps files in certain conditions. Unfortunately I
> > am unable to find a simple example which may be very illustrative here
> > to show you when it works and when it does not.
> > I include the error message below and so the question is: does anybody
> > have a hint of why the savefig fails and crashes?
> >
> > (I tried to close('all'), rcdefaults, etc).
> >
> > thanks for any input,
> >
> > Eric
> > =================
> >
> > >> savefig('toto.eps')
> >
> > Your figure is too big to fit on a4 paper. b4 paper will be used to
> > prevent clipping.
> > AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
> > -------------------------------------------------------------------------
> >-- exceptions.NameError Traceback (most
> > recent call last)
> >
> > /home/science/Sauron/AnalysisKin/Paper7/<ipython console>
> >
> > /usr/local/lib/python2.4/site-packages/matplotlib/pylab.py in
> > savefig(*args, **kwargs)
> > 809 def savefig(*args, **kwargs):
> > 810 fig = gcf()
> > --> 811 return fig.savefig(*args, **kwargs)
> > 812 if Figure.savefig.__doc__ is not None:
> > 813 savefig.__doc__ = _shift_string(Figure.savefig.__doc__)
> >
> > /usr/local/lib/python2.4/site-packages/matplotlib/figure.py in
> > savefig(self, *args, **kwargs)
> > 673 kwargs[key] = rcParams['savefig.%s'%key]
> > 674
> > --> 675 self.canvas.print_figure(*args, **kwargs)
> > 676
> > 677 def colorbar(self, mappable, cax=None, **kw):
> >
> > /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg
> >.py in print_figure(self, filename, dpi, facecolor, edgecolor,
> > orientation, **kwargs)
> > 112 try:
> > 113 agg.print_figure(filename, dpi, facecolor,
> > edgecolor,
> > --> 114 orientation, **kwargs)
> > 115 except IOError, msg:
> > 116 error_msg_gtk('Failed to save\nError message:
> > %s'%(msg,), self)
> >
> > /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py
> > in print_figure(self, filename, dpi, facecolor, edgecolor, orientation,
> > **kwargs)
> > 486 ps = self.switch_backends(FigureCanvasPS)
> > 487 ps.print_figure(filename, dpi, facecolor,
> > edgecolor, --> 488 orientation, **kwargs)
> > 489 elif ext.find('pdf')>=0:
> > 490 from backend_pdf import FigureCanvasPdf
> >
> > /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
> > in print_figure(self, outfile, dpi, facecolor, edgecolor, orientation,
> > papertype)
> > 999 # Let's keep the usetex stuff seperate from the
> > generic postscript
> > 1000 self._print_figure_tex(outfile, dpi, facecolor,
> > edgecolor,
> > -> 1001 orientation, papertype)
> > 1002 else:
> > 1003 if isinstance(outfile, file):
> >
> > /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
> > in _print_figure_tex(self, outfile, dpi, facecolor, edgecolor,
> > orientation, papertype)
> > 1233 elif rcParams['text.usetex']:
> > 1234 if False: pass # for debugging
> > -> 1235 else: gs_distill(tmpfile, ext=='.eps',
> > ptype=papertype, bbox=bbox)
> > 1236
> > 1237 if isinstance(outfile, file):
> >
> > /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
> > in gs_distill(tmpfile, eps, ptype, bbox)
> > 1331 exit_status = os.system(command)
> > 1332 fh = file(outfile)
> > -> 1333 if exit_status: raise RuntimeError('ghostscript was not able
> > to process \
> > 1334 your image.\nHere is the full report generated by ghostscript: \
> > 1335 \n\n'% dvifile + fh.read())
> >
> > NameError: global name 'dvifile' is not defined
> >
> >
> > --
> > ====================================================================
> > Eric Emsellem ems...@ob...
> > Centre de Recherche Astrophysique de Lyon
> > 9 av. Charles-Andre tel: +33 (0)4 78 86 83 84
> > 69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86
> > France http://www-obs.univ-lyon1.fr/eric.emsellem
> > ====================================================================
> >
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Darren S. Dale, Ph.D.
Staff Scientist
Cornell High Energy Synchrotron Source
Cornell University
275 Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853
dd...@co...
office: (607) 255-3819
fax: (607) 255-9001
http://www.chess.cornell.edu
|
|
From: PGM <pgm...@gm...> - 2006-10-17 16:02:23
|
On Tuesday 17 October 2006 11:50, Humufr wrote: > did you try to fix the size of the figure and the dpi? Just wondering: you wouldn't happen to plot a space character by itself, by any chance ? I remmbr running into something similar (the dvifile not being processed properly), and it turned out that I was trying to use r' ' for a legend. Substituting it with '' (viz, empty character) did the trick. My 2c would be to try plotting first with usetex=False, then add with usetex=True but text group by text group (tick labels, legened) till you find the culprit. |
|
From: Humufr <hu...@ya...> - 2006-10-17 15:50:18
|
did you try to fix the size of the figure and the dpi?
N.
Eric Emsellem wrote:
> Hi,
>
> I have a problem saving eps files in certain conditions. Unfortunately I
> am unable to find a simple example which may be very illustrative here
> to show you when it works and when it does not.
> I include the error message below and so the question is: does anybody
> have a hint of why the savefig fails and crashes?
>
> (I tried to close('all'), rcdefaults, etc).
>
> thanks for any input,
>
> Eric
> =================
>
> >> savefig('toto.eps')
>
>
> Your figure is too big to fit on a4 paper. b4 paper will be used to
> prevent clipping.
> AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
> ---------------------------------------------------------------------------
> exceptions.NameError Traceback (most
> recent call last)
>
> /home/science/Sauron/AnalysisKin/Paper7/<ipython console>
>
> /usr/local/lib/python2.4/site-packages/matplotlib/pylab.py in
> savefig(*args, **kwargs)
> 809 def savefig(*args, **kwargs):
> 810 fig = gcf()
> --> 811 return fig.savefig(*args, **kwargs)
> 812 if Figure.savefig.__doc__ is not None:
> 813 savefig.__doc__ = _shift_string(Figure.savefig.__doc__)
>
> /usr/local/lib/python2.4/site-packages/matplotlib/figure.py in
> savefig(self, *args, **kwargs)
> 673 kwargs[key] = rcParams['savefig.%s'%key]
> 674
> --> 675 self.canvas.print_figure(*args, **kwargs)
> 676
> 677 def colorbar(self, mappable, cax=None, **kw):
>
> /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py
> in print_figure(self, filename, dpi, facecolor, edgecolor, orientation,
> **kwargs)
> 112 try:
> 113 agg.print_figure(filename, dpi, facecolor,
> edgecolor,
> --> 114 orientation, **kwargs)
> 115 except IOError, msg:
> 116 error_msg_gtk('Failed to save\nError message:
> %s'%(msg,), self)
>
> /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py
> in print_figure(self, filename, dpi, facecolor, edgecolor, orientation,
> **kwargs)
> 486 ps = self.switch_backends(FigureCanvasPS)
> 487 ps.print_figure(filename, dpi, facecolor, edgecolor,
> --> 488 orientation, **kwargs)
> 489 elif ext.find('pdf')>=0:
> 490 from backend_pdf import FigureCanvasPdf
>
> /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
> in print_figure(self, outfile, dpi, facecolor, edgecolor, orientation,
> papertype)
> 999 # Let's keep the usetex stuff seperate from the
> generic postscript
> 1000 self._print_figure_tex(outfile, dpi, facecolor,
> edgecolor,
> -> 1001 orientation, papertype)
> 1002 else:
> 1003 if isinstance(outfile, file):
>
> /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
> in _print_figure_tex(self, outfile, dpi, facecolor, edgecolor,
> orientation, papertype)
> 1233 elif rcParams['text.usetex']:
> 1234 if False: pass # for debugging
> -> 1235 else: gs_distill(tmpfile, ext=='.eps',
> ptype=papertype, bbox=bbox)
> 1236
> 1237 if isinstance(outfile, file):
>
> /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
> in gs_distill(tmpfile, eps, ptype, bbox)
> 1331 exit_status = os.system(command)
> 1332 fh = file(outfile)
> -> 1333 if exit_status: raise RuntimeError('ghostscript was not able
> to process \
> 1334 your image.\nHere is the full report generated by ghostscript: \
> 1335 \n\n'% dvifile + fh.read())
>
> NameError: global name 'dvifile' is not defined
>
>
> --
> ====================================================================
> Eric Emsellem ems...@ob...
> Centre de Recherche Astrophysique de Lyon
> 9 av. Charles-Andre tel: +33 (0)4 78 86 83 84
> 69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86
> France http://www-obs.univ-lyon1.fr/eric.emsellem
> ====================================================================
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Eric E. <ems...@ob...> - 2006-10-17 15:43:18
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<pre wrap="">Hi,
I have a problem saving eps files in certain conditions. Unfortunately I
am unable to find a simple example which may be very illustrative here
to show you when it works and when it does not.
I include the error message below and so the question is: does anybody
have a hint of why the savefig fails and crashes?
(I tried to close('all'), rcdefaults, etc).
thanks for any input,
Eric
=================<span class="moz-txt-citetags">
>> </span>savefig('toto.eps')
</pre>
<pre wrap=""><!---->
Your figure is too big to fit on a4 paper. b4 paper will be used to
prevent clipping.
AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
---------------------------------------------------------------------------
exceptions.NameError Traceback (most
recent call last)
/home/science/Sauron/AnalysisKin/Paper7/<ipython console>
/usr/local/lib/python2.4/site-packages/matplotlib/pylab.py in
savefig(*args, **kwargs)
809 def savefig(*args, **kwargs):
810 fig = gcf()
--> 811 return fig.savefig(*args, **kwargs)
812 if Figure.savefig.__doc__ is not None:
813 savefig.__doc__ = _shift_string(Figure.savefig.__doc__)
/usr/local/lib/python2.4/site-packages/matplotlib/figure.py in
savefig(self, *args, **kwargs)
673 kwargs[key] = rcParams['savefig.%s'%key]
674
--> 675 self.canvas.print_figure(*args, **kwargs)
676
677 def colorbar(self, mappable, cax=None, **kw):
/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py
in print_figure(self, filename, dpi, facecolor, edgecolor, orientation,
**kwargs)
112 try:
113 agg.print_figure(filename, dpi, facecolor,
edgecolor,
--> 114 orientation, **kwargs)
115 except IOError, msg:
116 error_msg_gtk('Failed to save\nError message:
%s'%(msg,), self)
/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py
in print_figure(self, filename, dpi, facecolor, edgecolor, orientation,
**kwargs)
486 ps = self.switch_backends(FigureCanvasPS)
487 ps.print_figure(filename, dpi, facecolor, edgecolor,
--> 488 orientation, **kwargs)
489 elif ext.find('pdf')>=0:
490 from backend_pdf import FigureCanvasPdf
/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
in print_figure(self, outfile, dpi, facecolor, edgecolor, orientation,
papertype)
999 # Let's keep the usetex stuff seperate from the
generic postscript
1000 self._print_figure_tex(outfile, dpi, facecolor,
edgecolor,
-> 1001 orientation, papertype)
1002 else:
1003 if isinstance(outfile, file):
/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
in _print_figure_tex(self, outfile, dpi, facecolor, edgecolor,
orientation, papertype)
1233 elif rcParams['text.usetex']:
1234 if False: pass # for debugging
-> 1235 else: gs_distill(tmpfile, ext=='.eps',
ptype=papertype, bbox=bbox)
1236
1237 if isinstance(outfile, file):
/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
in gs_distill(tmpfile, eps, ptype, bbox)
1331 exit_status = os.system(command)
1332 fh = file(outfile)
-> 1333 if exit_status: raise RuntimeError('ghostscript was not able
to process \
1334 your image.\nHere is the full report generated by ghostscript: \
1335 \n\n'% dvifile + fh.read())
NameError: global name 'dvifile' is not defined
</pre>
<pre class="moz-signature" cols="72">--
====================================================================
Eric Emsellem <a class="moz-txt-link-abbreviated" href="mailto:ems...@ob...">ems...@ob...</a>
Centre de Recherche Astrophysique de Lyon
9 av. Charles-Andre tel: +33 (0)4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86
France <a class="moz-txt-link-freetext" href="http://www-obs.univ-lyon1.fr/eric.emsellem">http://www-obs.univ-lyon1.fr/eric.emsellem</a>
====================================================================
</pre>
</body>
</html>
|
|
From: Eric F. <ef...@ha...> - 2006-10-16 22:34:25
|
hu...@ya... wrote:
> Le lundi 16 octobre 2006 15:55, Eric Firing a =E9crit :
>> hu...@ya... wrote:
>>> I thing there are a small problem with contour.
>>>
>>> import pyfits
>>> import pylab
>>> data =3D pyfits.getdata('test.fits')
>>> pylab.imshow(data,cmap=3Dcm.gray)
>>> pylab.contour(data)
>>> #to have the result wanted:
>>> pylab.contour(data,origin=3D'upper')
>>> pylab.show()
>>>
>>> not sure that it's something did in purpose.
>> It is intentional, not a bug. See examples/contour_image.py
>>
>> Eric
>=20
> So that means that contour does have origin set a lower by default =
when imshow=20
> is set at upper? If it's intentional I'll note it but I'm must admi=
t that I=20
> have a problem with the logic.
It is more a matter of convention than logic. To the extent that the=
re=20
is logic, it might run like this:
An image is a string of bytes representing pixels arranged like lette=
rs=20
in text, starting from the upper left.
When no explicit X and Y vectors are given, contour and pcolor are=
=20
implicitly using the array indices as X and Y.
Eric
|
|
From: <hu...@ya...> - 2006-10-16 20:45:20
|
Le lundi 16 octobre 2006 15:55, Eric Firing a =E9crit=A0:
> hu...@ya... wrote:
> > I thing there are a small problem with contour.
> >
> > import pyfits
> > import pylab
> > data =3D pyfits.getdata('test.fits')
> > pylab.imshow(data,cmap=3Dcm.gray)
> > pylab.contour(data)
> > #to have the result wanted:
> > pylab.contour(data,origin=3D'upper')
> > pylab.show()
> >
> > not sure that it's something did in purpose.
>
> It is intentional, not a bug. See examples/contour_image.py
>
> Eric
So that means that contour does have origin set a lower by default when ims=
how=20
is set at upper? If it's intentional I'll note it but I'm must admit that I=
=20
have a problem with the logic.
N.
|
|
From: Eric F. <ef...@ha...> - 2006-10-16 20:02:40
|
What you see is a design limitation rather than a bug or feature. One easy workaround is to use the shrink kwarg. See examples/contour_demo.py. Another approach is to create the axes object you want for the colorbar manually, as in examples/multi_image.py and examples/subplots_adjust.py. Eric hu...@ya... wrote: > Hi, > > I have some problem with this kind of script: > > #!/usr/bin/env python > import numpy > import numpy.random > import pylab > > a = numpy.random.rand(10,10) > pylab.matshow(a) > pylab.colorbar() > > pylab.figure(figsize=(4.8,8),dpi=100) > pylab.imshow(a,aspect='equal',interpolation='nearest') > pylab.colorbar() > > pylab.show() > > The second figure is not good (at least for my point of view). I was expecting > that the colorbar will have the same size than the image, even if aspect is > set on equal or a number. Perhaps there are a simple solution for this that I > didn't find. |
|
From: Eric F. <ef...@ha...> - 2006-10-16 19:56:34
|
hu...@ya... wrote:
> I thing there are a small problem with contour.
>
> import pyfits
> import pylab
> data = pyfits.getdata('test.fits')
> pylab.imshow(data,cmap=cm.gray)
> pylab.contour(data)
> #to have the result wanted:
> pylab.contour(data,origin='upper')
> pylab.show()
>
> not sure that it's something did in purpose.
It is intentional, not a bug. See examples/contour_image.py
Eric
|
|
From: <hu...@ya...> - 2006-10-16 19:30:37
|
I thing there are a small problem with contour.
import pyfits
import pylab
data = pyfits.getdata('test.fits')
pylab.imshow(data,cmap=cm.gray)
pylab.contour(data)
#to have the result wanted:
pylab.contour(data,origin='upper')
pylab.show()
not sure that it's something did in purpose.
Thanks,
N.
|