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
(12) |
2
(15) |
3
(4) |
4
|
5
(1) |
6
(13) |
7
(8) |
8
(16) |
9
(10) |
10
(6) |
11
(11) |
12
(20) |
13
(8) |
14
(12) |
15
(10) |
16
(12) |
17
(6) |
18
(7) |
19
(18) |
20
(5) |
21
(9) |
22
|
23
(6) |
24
(3) |
25
|
26
(2) |
27
(26) |
28
(11) |
29
(9) |
30
(21) |
|
SGksCgpJIHdhcyByZWFkaW5nIHRob3VnaHQgdGhlIGRvY3MgYnV0IHdhcyB1bmFibGUgdG8gZmlu ZCBhIHdheSB0byBkbyB0aGUgZm9sbG93aW5nOgpXaGVuIEkgZ2VuZXJhdGUgYSBncmFwaCBhbmQg dGhlbiBzYXZlIGl0IHRvIGEgZmlsZSB2aWEgc2F2ZWZpZygpIGNhbGwKdGhlcmUgaXMgc29tZSB3 aGl0ZSBzcGFjZSBhcnJvdW5kIHRoZSBncmFwaC4gSG93IGRvIEkgcmVtb3ZlIGl0CgpFeGFtcGxl IGdyYXBoOiBodHRwOi8vc3ZuLnBldGFybWFyaWMuY29tL3BsYXlncm91bmQvdHJ1bmsvdGVzdC5w bmcKU2NyaXB0IHNvdXJjZTogaHR0cDovL3N2bi5wZXRhcm1hcmljLmNvbS9wbGF5Z3JvdW5kL3Ry dW5rL3dlYl9ncmFwaC92aWV3cy5weQoKSSBndWVzcyB0aGlzIGlzIHByb2JhYmx5IGEgcHJldHR5 IG5ld2JlIHF1ZXN0aW9uLCBidXQgSSdtIHJlYWxseSBub3QKaW50byBhbGwgb2YgdGhpcywgSSdt IGp1c3QgYSB1c2VyIHRyeWluZyB0byBtYWtlIHNvbWUgcHJldHR5IHBpY3R1cmVzCmZvciBhIHN0 dWRlbnQgcHJvamVjdCA6KQoKUmVnYXJkcywKLS0gClBldGFyIE1hcmnEhwoqZS1tYWlsOiBwZXRh ci5tYXJpY0BnbWFpbC5jb20KKm1vYmlsZTogKzM4MSAoNjQpIDYxMjI0NjcKCippY3E6IDIyNDcy MDMyMgoqc2t5cGU6IHBldGFyX21hcmljCip3ZWI6IGh0dHA6Ly93d3cucGV0YXJtYXJpYy5jb20v Cg==
Hi Danny, On Tuesday 27 June 2006 13:38, danny shevitz wrote: > TkAgg... GTKAgg. What difference does a letter make. > That helped. I couldn't remember the windows backend. > > I still have a problem, but now it's the same if I import either > matplotlib or pylab: > > ------------------------------------------------------------------------ > Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] > on win32 > Type "help", "copyright", "credits" or "license" for more information. > > >>> import pylab > > D:\ENTHOU~1\lib\site-packages\matplotlib\__init__.py:947: UserWarning: > Bad val " > free" on line #200 > "image.aspect : free # free | preserve" > in file "e:\home\.matplotlib\matplotlibrc" > not a valid aspect specification > warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file > "%s"\n\t%s' % ( > > ------------------------------------------------------------------------ There have been some changes to the matplotlibrc file, just remove "image.aspect : free # free | preserve" from your file to prevent the message.
Thanks John and Darren. I think i'll use the nan trick for now but the masked array looks incredibly powerful. I'll take a look at the masked array demo. Thanks once again for your help and some really awesome plotting software! --Tom On 6/27/06, Darren Dale <dd...@co...> wrote: > On Tuesday 27 June 2006 14:16, Tom Denniston wrote: > > When you do a line scatter plot in excel and data is missing between > > two observations excel doesn't connect those two observations with a > > line. So what you see is a line with gaps where the data is missing. > > Missing data is > > defined as having x values but no y value or vice versa. Is there a > > good way to get similar behavior in matplotlib? > > If you are using 0.87.3, you can do this: > > plot([1.1, 2, nan, 3, 5]) > > > 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 >
>>>>> "danny" == danny shevitz <dan...@ya...> writes: danny> TkAgg... GTKAgg. What difference does a letter make. That danny> helped. I couldn't remember the windows backend. danny> I still have a problem, but now it's the same if I import danny> either matplotlib or pylab: Your rc file is out of date, in this case the parameters for handling image aspect ratio are different. Try updating your rc file from the recent defaults ### MATPLOTLIBRC FORMAT # This is a sample matplotlib configuration file. It should be placed # in HOME/.matplotlib/matplotlibrc (unix/linux like systems) and # C:\Documents and Settings\yourname\.matplotlib (win32 systems) # # By default, the installer will overwrite the existing file in the # install path, so if you want to preserve your's, please move it to # your HOME dir and set the environment variable if necessary. # # This file is best viewed in a editor which supports python mode # syntax highlighting # # Blank lines, or lines starting with a comment symbol, are ignored, # as are trailing comments. Other lines must have the format # # key : val # optional comment # # Colors: for the color values below, you can either use # - a matplotlib color string, such as r, k, or b # - an rgb tuple, such as (1.0, 0.5, 0.0) # - a hex string, such as ff00ff (no '#' symbol) # - a scalar grayscale intensity such as 0.75 # - a legal html color name, eg red, blue, darkslategray #### CONFIGURATION BEGINS HERE # the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg # Agg Cairo GD GDK Paint PS PDF SVG Template backend : GTKAgg numerix : numpy # numpy, Numeric or numarray interactive : False # see http://matplotlib.sourceforge.net/interactive.html toolbar : toolbar2 # None | classic | toolbar2 timezone : UTC # a pytz timezone string, eg US/Central or Europe/Paris # Where your matplotlib data lives if you installed to a non-default # location. This is where the matplotlib fonts, bitmaps, etc reside #datapath : /home/jdhunter/mpldata ### LINES # See http://matplotlib.sourceforge.net/matplotlib.lines.html for more # information on line properties. lines.linewidth : 1.0 # line width in points lines.linestyle : - # solid line lines.color : blue lines.marker : None # the default marker lines.markerfacecolor : blue lines.markeredgecolor : black lines.markeredgewidth : 0.5 # the line width around the marker symbol lines.markersize : 6 # markersize, in points lines.dash_joinstyle : miter # miter|round|bevel lines.dash_capstyle : butt # butt|round|projecting lines.solid_joinstyle : miter # miter|round|bevel lines.solid_capstyle : projecting # butt|round|projecting lines.antialiased : True # render lines in antialised (no jaggies) ### PATCHES # Patches are graphical objects that fill 2D space, like polygons or # circles. See # http://matplotlib.sourceforge.net/matplotlib.patches.html for more # information on patch properties patch.linewidth : 1.0 # edge width in points patch.facecolor : blue patch.edgecolor : black patch.antialiased : True # render patches in antialised (no jaggies) ### FONT # # font properties used by text.Text. See # http://matplotlib.sourceforge.net/matplotlib.font_manager.html for more # information on font properties. The 6 font properties used for font # matching are given below with their default values. # # The font.family property has five values: 'serif' (e.g. Times), # 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery), # 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of # these font families has a default list of font names in decreasing # order of priority associated with them. # # The font.style property has three values: normal (or roman), italic # or oblique. The oblique style will be used for italic, if it is not # present. # # The font.variant property has two values: normal or small-caps. For # TrueType fonts, which are scalable fonts, small-caps is equivalent # to using a font size of 'smaller', or about 83% of the current font # size. # # The font.weight property has effectively 13 values: normal, bold, # bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as # 400, and bold is 700. bolder and lighter are relative values with # respect to the current weight. # # The font.stretch property has 11 values: ultra-condensed, # extra-condensed, condensed, semi-condensed, normal, semi-expanded, # expanded, extra-expanded, ultra-expanded, wider, and narrower. This # property is not currently implemented. # # The font.size property is the default font size for text, given in pts. # 12pt is the standard value. # font.family : sans-serif font.style : normal font.variant : normal font.weight : medium font.stretch : normal # note that font.size controls default text sizes. To configure # special text sizes tick labels, axes, labels, title, etc, see the rc # settings for axes and ticks. Special text sizes can be defined # relative to font.size, using the following values: xx-small, x-small, # small, medium, large, x-large, xx-large, larger, or smaller font.size : 12.0 font.serif : New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Bitstream Vera Serif, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif font.sans-serif : Lucida Grande, Verdana, Geneva, Lucida, Bitstream Vera Sans, Arial, Helvetica, Avant Garde, sans-serif font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy font.monospace : Andale Mono, Bitstream Vera Sans Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace ### TEXT # text properties used by text.Text. See # http://matplotlib.sourceforge.net/matplotlib.text.html for more # information on text properties text.color : black text.usetex : False # use latex for all text handling. For more information, see # http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex text.dvipnghack : False # some versions of dvipng don't handle # alpha channel properly. Use True to correct and flush # ~/.matplotlib/tex.cache before testing ### AXES # default face and edge color, default tick sizes, # default fontsizes for ticklabels, and so on. See # http://matplotlib.sourceforge.net/matplotlib.axes.html#Axes axes.hold : True # whether to clear the axes by default on axes.facecolor : white # axes background color axes.edgecolor : black # axes edge color axes.linewidth : 1.0 # edge linewidth axes.grid : False # display grid or not axes.titlesize : 14 # fontsize of the axes title axes.labelsize : 12 # fontsize of the x any y labels axes.labelcolor : black axes.axisbelow : False # whether axis gridlines and ticks are below # the axes elements (lines, text, etc) polaraxes.grid : True # display grid on polar axes ### TICKS # see http://matplotlib.sourceforge.net/matplotlib.axis.html#Ticks xtick.major.size : 4 # major tick size in points xtick.minor.size : 2 # minor tick size in points xtick.major.pad : 4 # distance to major tick label in points xtick.minor.pad : 4 # distance to the minor tick label in points xtick.color : k # color of the tick labels xtick.labelsize : 12 # fontsize of the tick labels xtick.direction : in # direction: in or out ytick.major.size : 4 # major tick size in points ytick.minor.size : 2 # minor tick size in points ytick.major.pad : 4 # distance to major tick label in points ytick.minor.pad : 4 # distance to the minor tick label in points ytick.color : k # color of the tick labels ytick.labelsize : 12 # fontsize of the tick labels ytick.direction : in # direction: in or out ### GRIDS grid.color : black # grid color grid.linestyle : : # dotted grid.linewidth : 0.5 # in points ### Legend legend.isaxes : True legend.numpoints : 4 # the number of points in the legend line legend.fontsize : 14 legend.pad : 0.2 # the fractional whitespace inside the legend border legend.markerscale : 1.0 # the relative size of legend markers vs. original # the following dimensions are in axes coords legend.labelsep : 0.010 # the vertical space between the legend entries legend.handlelen : 0.05 # the length of the legend lines legend.handletextsep : 0.02 # the space between the legend line and legend text legend.axespad : 0.02 # the border between the axes and legend edge legend.shadow : False ### FIGURE # See http://matplotlib.sourceforge.net/matplotlib.figure.html#Figure figure.figsize : 8, 6 # figure size in inches figure.dpi : 80 # figure dots per inch figure.facecolor : 0.75 # figure facecolor; 0.75 is scalar gray figure.edgecolor : white # figure edgecolor # The figure subplot parameters. All dimensions are fraction of the # figure width or height figure.subplot.left : 0.125 # the left side of the subplots of the figure figure.subplot.right : 0.9 # the right side of the subplots of the figure figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure figure.subplot.top : 0.9 # the top of the subplots of the figure figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots ### IMAGES image.aspect : equal # equal | auto | a number image.interpolation : bilinear # see help(imshow) for options image.cmap : jet # gray | jet etc... image.lut : 256 # the size of the colormap lookup table image.origin : upper # lower | upper ### CONTOUR PLOTS contour.negative_linestyle : 6.0, 6.0 # negative contour dashstyle (size in points) ### SAVING FIGURES # the default savefig params can be different for the GUI backends. # Eg, you may want a higher resolution, or to make the figure # background white savefig.dpi : 100 # figure dots per inch savefig.facecolor : white # figure facecolor when saving savefig.edgecolor : white # figure edgecolor when saving # tk backend params tk.window_focus : False # Maintain shell focus for TkAgg tk.pythoninspect : False # tk sets PYTHONINSEPCT # ps backend params ps.papersize : letter # auto, letter, legal, ledger, A0-A10, B0-B10 ps.useafm : False # use of afm fonts, results in small files ps.usedistiller : False # can be: None, ghostscript or xpdf # Experimental: may produce smaller files. # xpdf intended for production of publication quality files, # but requires ghostscript, xpdf and ps2eps ps.distiller.res : 6000 # dpi # pdf backend params pdf.compression : 6 # integer from 0 to 9 # 0 disables compression (good for debugging) # Set the verbose flags. This controls how much information # matplotlib gives you at runtime and where it goes. Ther verbosity # levels are: silent, helpful, debug, debug-annoying. Any level is # inclusive of all the levels below it. If you setting is debug, # you'll get all the debug and helpful messages. When submitting # problems to the mailing-list, please set verbose to helpful or debug # and paste the output into your report. # # The fileo gives the destination for any calls to verbose.report. # These objects can a filename, or a filehandle like sys.stdout. # # You can override the rc default verbosity from the command line by # giving the flags --verbose-LEVEL where LEVEL is one of the legal # levels, eg --verbose-helpful. # # You can access the verbose instance in your code # from matplotlib import verbose. verbose.level : silent # one of silent, helpful, debug, debug-annoying verbose.fileo : sys.stdout # a log filename, sys.stdout or sys.stderr
On Tuesday 27 June 2006 14:16, Tom Denniston wrote: > When you do a line scatter plot in excel and data is missing between > two observations excel doesn't connect those two observations with a > line. So what you see is a line with gaps where the data is missing. > Missing data is > defined as having x values but no y value or vice versa. Is there a > good way to get similar behavior in matplotlib? If you are using 0.87.3, you can do this: plot([1.1, 2, nan, 3, 5])
>>>>> "danny" == danny shevitz <dan...@ya...> writes: danny> thanks for all the help, it's working now. That wasn't even danny> too bad. FWIW, I did download the latest .matplotlibrc danny> file off the web at : danny> http://matplotlib.sourceforge.net/matplotlibrc danny> It is currently out of date as it contains: ### IMAGES danny> image.aspect : free # free | preserve Hey Danny, Thanks for the tip -- I updated the web page JDH
> Charlie -- I thought we were setting the default backend to TkAgg for > win32 installs. and I thought that was settled by being hard coded into setup.py # line 287 if sys.platform=='win32': rc = dict(backend='TkAgg', numerix='Numeric') Danny, can you try deleting your .matplotlib folder and trying again? - Charlie
>>>>> "Tom" == Tom Denniston <tom...@al...> writes: Tom> When you do a line scatter plot in excel and data is missing Tom> between two observations excel doesn't connect those two Tom> observations with a line. So what you see is a line with Tom> gaps where the data is missing. Missing data is defined as Tom> having x values but no y value or vice versa. Is there a Tom> good way to get similar behavior in matplotlib? This from examples/masked_demo.py #!/bin/env python ''' Plot lines with points masked out. This would typically be used with gappy data, to break the line at the data gaps. ''' import matplotlib.numerix.ma as M from pylab import * x = M.arange(0, 2*pi, 0.02) y = M.sin(x) y1 = sin(2*x) y2 = sin(3*x) ym1 = M.masked_where(y1 > 0.5, y1) ym2 = M.masked_where(y2 < -0.5, y2) lines = plot(x, y, 'r', x, ym1, 'g', x, ym2, 'bo') setp(lines[0], linewidth = 4) setp(lines[1], linewidth = 2) setp(lines[2], markersize = 10) legend( ('No mask', 'Masked if > 0.5', 'Masked if < -0.5') , loc = 'upper right') title('Masked line demo') savefig('test.svg') #savefig('test.ps') show()
thanks for all the help, it's working now. That wasn't even too bad. FWIW, I did download the latest .matplotlibrc file off the web at : http://matplotlib.sourceforge.net/matplotlibrc It is currently out of date as it contains: ### IMAGES image.aspect : free # free | preserve thanks, Danny __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
When you do a line scatter plot in excel and data is missing between two observations excel doesn't connect those two observations with a line. So what you see is a line with gaps where the data is missing. Missing data is defined as having x values but no y value or vice versa. Is there a good way to get similar behavior in matplotlib? I tried to attach a bmp that had an example but the mail server rejected it on the grounds it was too large. --Tom
TkAgg... GTKAgg. What difference does a letter make. That helped. I couldn't remember the windows backend. I still have a problem, but now it's the same if I import either matplotlib or pylab: ------------------------------------------------------------------------ Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab D:\ENTHOU~1\lib\site-packages\matplotlib\__init__.py:947: UserWarning: Bad val " free" on line #200 "image.aspect : free # free | preserve" in file "e:\home\.matplotlib\matplotlibrc" not a valid aspect specification warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % ( ------------------------------------------------------------------------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
>>>>> "Danny" == Danny Shevitz <sh...@la...> writes: Danny> I have done a bunch of upgrading (python, scipy, numpy, Danny> ipython, matlotlib, pyreadline, ctypes) and of course Danny> things are broken. Everything seems to be ok except for Danny> matplotlib. I think it is a backend problem, but I am Danny> nobody's expert on backends. I searched the archives for Danny> "gobject" but didn't see anything that I could use. Danny> Here's the versions (Win2k): python 2.4.3 scipy .4.9 numpy Danny> .9.8 ipython .7.2 matplotlib .87.3 This means you don't have pygtk properly installed and you have GTK* as one of the backends. Check your matplotlibrc file and either set the backend to something else (eg TkAgg) or install pygtk. Charlie -- I thought we were setting the default backend to TkAgg for win32 installs. JDH
I have done a bunch of upgrading (python, scipy, numpy, ipython, matlotlib, pyreadline, ctypes) and of course things are broken. Everything seems to be ok except for matplotlib. I think it is a backend problem, but I am nobody's expert on backends. I searched the archives for "gobject" but didn't see anything that I could use. Here's the versions (Win2k): python 2.4.3 scipy .4.9 numpy .9.8 ipython .7.2 matplotlib .87.3 Thanks, Danny when I try to import pylab here's the error: ------------------------------------------------------------------------------------------------------------ Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab D:\ENTHOU~1\lib\site-packages\matplotlib\__init__.py:947: UserWarning: Bad val " free" on line #200 "image.aspect : free # free | preserve" in file "e:\home\.matplotlib\matplotlibrc" not a valid aspect specification warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % ( Traceback (most recent call last): File "<stdin>", line 1, in ? File "D:\Enthought\Lib\site-packages\pylab.py", line 1, in ? from matplotlib.pylab import * File "D:\Enthought\Lib\site-packages\matplotlib\pylab.py", line 219, in ? new_figure_manager, draw_if_interactive, show = pylab_setup() File "D:\Enthought\Lib\site-packages\matplotlib\backends\__init__.py", line 23 , in pylab_setup globals(),locals(),[backend_name]) File "D:\Enthought\Lib\site-packages\matplotlib\backends\backend_gtkagg.py", l ine 10, in ? from backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\ File "D:\Enthought\Lib\site-packages\matplotlib\backends\backend_gtk.py", line 6, in ? import gobject ImportError: No module named gobject >>> ------------------------------------------------------------------------------------------------------------ when I try to import matplotlib directly, here's the error: ------------------------------------------------------------------------------------------------------------ Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib D:\ENTHOU~1\lib\site-packages\matplotlib\__init__.py:947: UserWarning: Bad val free" on line #200 "image.aspect : free # free | preserve" in file "e:\home\.matplotlib\matplotlibrc" not a valid aspect specification warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % ( >>> ------------------------------------------------------------------------------------------------------------
>>>>> "Benoit" == Benoit Donnet <ben...@li...> writes: Benoit> Hi, First of all, I'd like to thank matplotlib developers Benoit> for providing us this wonderful library. Benoit> It's been a while now I'm using matplotlib and I'm pretty Benoit> happy with it. I used to be a Linux user. Recently, I Benoit> moved to Mac (a macbook pro, to be precise). I succeed to Benoit> install matplotlib. Everything is working correctly Benoit> except the export of figures into eps format (which is Benoit> important when writing papers with LaTeX). Benoit> When I'm trying to save a figure in eps, everything seems Benoit> ok. However, it is impossible to open the eps file. The Benoit> eps seems to be corrupted. A closer look at the eps file Benoit> shows that the generated file is 'heavy', i.e., several MB Benoit> (around 6MB on average). Note that other output formats Benoit> are correctly generated. Benoit> I don't really understand the source of the problem. Benoit> Probably something that is misconfigured. If somebody has Benoit> an idea on how to solve this problem, it would be great. I am 99% sure this is a font problem. matplotlib embeds the truetype font into the PS file, which accounts for most of the file size. Paul Barrett at one point looked into just embedding he glyphs we use rather than the entire font file but was unsuccessful. It would be nice if some font guru could revisit this issue at some point since it would be a big win in terms of file size. What appears to be happening is that mpl is finding and using a native os x font rather than the Vera fonts that mpl ships with. Try editing your matplotlib rc file and change these font preferences font.serif : New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Bitstream Vera Serif, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif font.sans-serif : Lucida Grande, Verdana, Geneva, Lucida, Bitstream Vera Sans, Arial, Helvetica, Avant Garde, sans-serif font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy font.monospace : Andale Mono, Bitstream Vera Sans Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace by moving the bitstream fonts to the front. I'm inclined to make the bitstream fonts the default (the first item in the default rc list) so that others won't be bitten by this until we solve the "dump the entire font" problem. Any objections? Benoit, please let us know if this fixes your problem. After changing the rc file, please recursively remove ~/.matplotlib/ttffont.cache before rerunning. Also, if you run your script with --verbose-debug you will get information about which fonts are loaded. JDH
Ok, usetex is going to do postscript processing in the user's current directory, but only on windows. On other platforms, the work is done in a temp directory. I've tested my changes on linux and windows, and committed them to svn as of 2528. Feedback appreciated. Darren On Tuesday 27 June 2006 09:56, Darren Dale wrote: > On Tuesday 27 June 2006 09:14, Jouni K Seppanen wrote: > > Darren Dale <dd...@co...> writes: > > > The problem is that on windows, the TEMP environment variable is > > > something like 'C:\\Documents and Settings\\Darren\\Local > > > Settings\\Temp' or 'C:\\DOCUME~1\\Darren\\LOCALS~1\\TEMP', and > > > \includegraphics is not able to deal with filenames that have spaces > > > or tildes (this has been declared a feature, not a bug). > > > > I don't have a Windows system to test on, but on a Mac the following > > trick seems to deal with the tildes: > > > > \documentclass{article} > > \usepackage{graphicx} > > \catcode`\~11 > > \graphicspath{{/tmp/foo~bar/}} > > \catcode`\~13 > > \begin{document} > > \includegraphics{stuff.pdf} > > \end{document} > > > > If I put stuff.pdf in /tmp/foo~bar, pdflatex (from TeX Live) finds it > > just fine. Handling spaces seem to be a more difficult problem... > > Thanks Jouni, that was a creative suggestion. Unfortunately it doesn't work > on my windows laptop because dvips doesnt find the embedded file unless I > either run dvips in the directory containing the file to embed or I pass an > absolute path to includegraphics. I tried wrapping the \includegraphics > statement with the catcode shifts you suggested, but it didnt work. > > Darren > > 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. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-9894 fax: (607) 255-9001
Ignore my last post. I forgot it was .ps that I had trouble with =20 not .eps. I haven't tested either in while so maybe something is broken now. On 27 Jun, 2006, at 07:14, Benoit Donnet wrote: > Hi, > > First of all, I'd like to thank matplotlib developers for =20 > providing us > this wonderful library. > > It's been a while now I'm using matplotlib and I'm pretty happy with > it. I used to be a Linux user. Recently, I moved to Mac (a macbook > pro, to be precise). I succeed to install matplotlib. Everything is > working correctly except the export of figures into eps format =20 > (which is > important when writing papers with LaTeX). > > When I'm trying to save a figure in eps, everything seems ok. =20 > However, > it is impossible to open the eps file. The eps seems to be =20 > corrupted. A > closer look at the eps file shows that the generated file is 'heavy', > i.e., several MB (around 6MB on average). Note that other output > formats are correctly generated. > > I don't really understand the source of the problem. Probably =20 > something > that is misconfigured. If somebody has an idea on how to solve this > problem, it would be great. > > Here is further information on my configuration: > matplotlib data path > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/=20 > site-packages/matplotlib/mpl-data > $HOME=3D/Users/benoit > CONFIGDIR=3D/Users/benoit/.matplotlib > loaded rc file /Users/benoit/.matplotlib/matplotlibrc > matplotlib version 0.88 > verbose.level helpful > interactive is False > platform is darwin > numerix numpy 0.9.9.2549 > font search path > ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/=20 > site-packages/matplotlib/mpl-data'] > loaded ttfcache file /Users/benoit/.matplotlib/ttffont.cache > backend PS version Level II > > Thanks in advance for any kind of help > > Best regards. > > Benoit > > --=20 > Benoit Donnet > Universit=E9 Pierre & Marie Curie (Paris VI) > Laboratoire LIP6 - R=E9seaux & Performances > 8, rue du Capitaine Scott > 75015 Paris > France > Phone: 00 33 (0)1 44 27 88 83 > traceroute@home Project: http://trhome.sourceforge.net > Home Page: http://rp.lip6.fr/~donnet > > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" **********************************************************************
I have always had problems with the eps on a Mac. I save it as .ps =20 and then use Distiller (or equivalent) to convert to eps. On 27 Jun, 2006, at 07:14, Benoit Donnet wrote: > Hi, > > First of all, I'd like to thank matplotlib developers for =20 > providing us > this wonderful library. > > It's been a while now I'm using matplotlib and I'm pretty happy with > it. I used to be a Linux user. Recently, I moved to Mac (a macbook > pro, to be precise). I succeed to install matplotlib. Everything is > working correctly except the export of figures into eps format =20 > (which is > important when writing papers with LaTeX). > > When I'm trying to save a figure in eps, everything seems ok. =20 > However, > it is impossible to open the eps file. The eps seems to be =20 > corrupted. A > closer look at the eps file shows that the generated file is 'heavy', > i.e., several MB (around 6MB on average). Note that other output > formats are correctly generated. > > I don't really understand the source of the problem. Probably =20 > something > that is misconfigured. If somebody has an idea on how to solve this > problem, it would be great. > > Here is further information on my configuration: > matplotlib data path > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/=20 > site-packages/matplotlib/mpl-data > $HOME=3D/Users/benoit > CONFIGDIR=3D/Users/benoit/.matplotlib > loaded rc file /Users/benoit/.matplotlib/matplotlibrc > matplotlib version 0.88 > verbose.level helpful > interactive is False > platform is darwin > numerix numpy 0.9.9.2549 > font search path > ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/=20 > site-packages/matplotlib/mpl-data'] > loaded ttfcache file /Users/benoit/.matplotlib/ttffont.cache > backend PS version Level II > > Thanks in advance for any kind of help > > Best regards. > > Benoit > > --=20 > Benoit Donnet > Universit=E9 Pierre & Marie Curie (Paris VI) > Laboratoire LIP6 - R=E9seaux & Performances > 8, rue du Capitaine Scott > 75015 Paris > France > Phone: 00 33 (0)1 44 27 88 83 > traceroute@home Project: http://trhome.sourceforge.net > Home Page: http://rp.lip6.fr/~donnet > > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" **********************************************************************
On Tuesday 27 June 2006 09:14, Jouni K Seppanen wrote: > Darren Dale <dd...@co...> writes: > > The problem is that on windows, the TEMP environment variable is > > something like 'C:\\Documents and Settings\\Darren\\Local > > Settings\\Temp' or 'C:\\DOCUME~1\\Darren\\LOCALS~1\\TEMP', and > > \includegraphics is not able to deal with filenames that have spaces > > or tildes (this has been declared a feature, not a bug). > > I don't have a Windows system to test on, but on a Mac the following trick > seems to deal with the tildes: > > \documentclass{article} > \usepackage{graphicx} > \catcode`\~11 > \graphicspath{{/tmp/foo~bar/}} > \catcode`\~13 > \begin{document} > \includegraphics{stuff.pdf} > \end{document} > > If I put stuff.pdf in /tmp/foo~bar, pdflatex (from TeX Live) finds it > just fine. Handling spaces seem to be a more difficult problem... Thanks Jouni, that was a creative suggestion. Unfortunately it doesn't work on my windows laptop because dvips doesnt find the embedded file unless I either run dvips in the directory containing the file to embed or I pass an absolute path to includegraphics. I tried wrapping the \includegraphics statement with the catcode shifts you suggested, but it didnt work. Darren
Darren Dale <dd...@co...> writes: > The problem is that on windows, the TEMP environment variable is > something like 'C:\\Documents and Settings\\Darren\\Local > Settings\\Temp' or 'C:\\DOCUME~1\\Darren\\LOCALS~1\\TEMP', and > \includegraphics is not able to deal with filenames that have spaces > or tildes (this has been declared a feature, not a bug). I don't have a Windows system to test on, but on a Mac the following trick seems to deal with the tildes: \documentclass{article} \usepackage{graphicx} \catcode`\~11 \graphicspath{{/tmp/foo~bar/}} \catcode`\~13 \begin{document} \includegraphics{stuff.pdf} \end{document} If I put stuff.pdf in /tmp/foo~bar, pdflatex (from TeX Live) finds it just fine. Handling spaces seem to be a more difficult problem... -- Jouni
Hi, First of all, I'd like to thank matplotlib developers for providing us=20 this wonderful library. It's been a while now I'm using matplotlib and I'm pretty happy with=20 it. I used to be a Linux user. Recently, I moved to Mac (a macbook=20 pro, to be precise). I succeed to install matplotlib. Everything is=20 working correctly except the export of figures into eps format (which is=20 important when writing papers with LaTeX). When I'm trying to save a figure in eps, everything seems ok. However,=20 it is impossible to open the eps file. The eps seems to be corrupted. A=20 closer look at the eps file shows that the generated file is 'heavy',=20 i.e., several MB (around 6MB on average). Note that other output=20 formats are correctly generated. I don't really understand the source of the problem. Probably something=20 that is misconfigured. If somebody has an idea on how to solve this=20 problem, it would be great. Here is further information on my configuration: matplotlib data path=20 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pack= ages/matplotlib/mpl-data $HOME=3D/Users/benoit CONFIGDIR=3D/Users/benoit/.matplotlib loaded rc file /Users/benoit/.matplotlib/matplotlibrc matplotlib version 0.88 verbose.level helpful interactive is False platform is darwin numerix numpy 0.9.9.2549 font search path=20 ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pa= ckages/matplotlib/mpl-data'] loaded ttfcache file /Users/benoit/.matplotlib/ttffont.cache backend PS version Level II Thanks in advance for any kind of help Best regards. Benoit --=20 Benoit Donnet Universit=E9 Pierre & Marie Curie (Paris VI) Laboratoire LIP6 - R=E9seaux & Performances 8, rue du Capitaine Scott 75015 Paris France Phone: 00 33 (0)1 44 27 88 83 traceroute@home Project: http://trhome.sourceforge.net Home Page: http://rp.lip6.fr/~donnet
Nils Wagner wrote: > Hi all, > > I have generated some figures with matplotlib (savefig('test.png') > savefig(test.jpg')). > > If I try to include them via > > \includegraphics[width=8cm]{test.jpg} > > I get > > LaTeX Error: Cannot determine size of graphic in test.jpg (no BoundingBox). > > I am using latest svn versions of numpy/scipy and matplotlib. > > Any idea how to fix this problem ? > > Nils > > > Sorry for the noise. It was just a missing \usepackage{graphicx} in the header of my new tex file. Nils
PGM wrote: > Nils, > That's far more a Latex question than a matplotlib one. > Short answer: you can't fix the BBox from a JPEG, there's none ! > >From what I remmbr from my LaTeX years, you need to transform the jpeg to a > format LaTeX can understand, viz '.ps' or '.eps' > Check > http://www2.eng.cam.ac.uk/~pmg26/hpage/teaching/graphics_LaTeX.html > or the help/manual of the graphicx package, or google "import jpeg latex" > > 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 > I am using pdflatex and I have used *.png files before without any trouble. So are there any changes in matplotlib's svn wrt to these graphic formats within the last two weeks ? Nils
Nils, That's far more a Latex question than a matplotlib one.=20 Short answer: you can't fix the BBox from a JPEG, there's none ! =46rom what I remmbr from my LaTeX years, you need to transform the jpeg to= a=20 format LaTeX can understand, viz '.ps' or '.eps' Check http://www2.eng.cam.ac.uk/~pmg26/hpage/teaching/graphics_LaTeX.html or the help/manual of the graphicx package, or google "import jpeg latex"
I have a little time and am trying to fix this bug. Wolfgang, would you try running the following: import os from tempfile import gettempdir os.system('cd %s & latex -help'% gettempdir()) If that doesnt work, than I need to pass an absolute path/eps_filename to=20 \includegraphics. The problem is that on windows, the TEMP environment=20 variable is something like 'C:\\Documents and Settings\\Darren\\Local=20 Settings\\Temp' or 'C:\\DOCUME~1\\Darren\\LOCALS~1\\TEMP', and=20 \includegraphics is not able to deal with filenames that have spaces or=20 tildes (this has been declared a feature, not a bug).=20 I need advice from some of the mpl gurus. If I can't do the os.system('cd .= =2E.)=20 trick, should I request that windows users either change their temp=20 environment variable to something like c:\temp, should I request that they= =20 make a new environment variable called mpltemp, or should I just process th= e=20 file in the current directory? Thanks, Darren On Monday 12 June 2006 13:18, Wolfgang wrote: > Hi, > > I've changed back all my changes but: > > if exit_status: raise RuntimeError('dvipng was not able to \ > RuntimeError: dvipng was not able to process the flowing file: > C:\Documents and > Settings\s0167070\.matplotlib\tex.cache3円bb1bc57100b0c65915bdda3a1f60dae.= dv >i Here is the full report generated by dvipng: > > 3bb1bc57100b0c65915bdda3a1f60dae.dvi: No such file or directory > > full annoying output: > >pythonw -u "tex.py" > > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\__init__.py:947: UserWarning: Bad val "free" on line #200 > "image.aspect : free # free | preserve" > in file "C:\Documents and Settings\s0167070\.matplotlib\matplotlibrc" > not a valid aspect specification > warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file > "%s"\n\t%s' % ( > loaded rc file C:\Documents and Settings\s0167070\.matplotlib\matplotlibrc > matplotlib version 0.87.3 > verbose.level debug-annoying > interactive is False > platform is win32 > loaded modules: ['_bisect', 'distutils', 'random', 'datetime', > 'matplotlib.tempfile', 'distutils.sysconfig', 'pytz.datetime', > 'distutils.dep_util', 'tempfile', 'imp', 'zipimport', 'string', > 'matplotlib.__future__', 'pytz.tzinfo', 'distutils.re', 'bisect', > 'signal', 'matplotlib.pytz', 'distutils.log', 'locale', 'encodings', > 'dateutil', 'matplotlib.warnings', 'matplotlib.sys', 're', 'ntpath', > 'new', 'math', 'UserDict', 'distutils.os', 'matplotlib', 'codecs', > 'md5', '_locale', 'matplotlib.os', 'thread', 'sre', 'pkg_resources', > 'itertools', 'distutils.spawn', 'distutils.sys', 'os', '__future__', > '_sre', '__builtin__', 'matplotlib.re', 'distutils.util', > 'distutils.string', 'matplotlib.datetime', 'errno', 'binascii', > 'sre_constants', 'matplotlib.md5', 'types', 'pytz.sys', '_codecs', > 'encodings.cp1252', 'pytz', 'matplotlib.dateutil', 'encodings.aliases', > 'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.distutils', > 'copy_reg', 'sre_compile', '_random', 'site', '__main__', 'shutil', > 'strop', 'encodings.codecs', 'encodings.exceptions', 'nt', 'pytz.sets', > 'stat', 'matplotlib.toolkits', 'warnings', 'encodings.types', 'time', > 'sys', 'os.path', 'matplotlib.distutils', 'distutils.errors', > 'linecache', 'matplotlib.shutil', 'sets'] > numerix numpy 0.9.8 > font search path > ['D:\\Programme\\Python2.4.3\\lib\\site-packages\\matplotlib-0.87.3-py2.4= =2Dw >in32.egg\\matplotlib\\mpl-data'] trying fontname > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data\VeraIt.ttf trying fontname > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data\VeraMoIt.ttf trying fontname > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data\cmsy10.ttf trying fontname > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data\VeraMono.ttf trying fontname > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data\VeraBI.ttf trying fontname > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data\VeraSe.ttf trying fontname > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data\VeraMoBI.ttf trying fontname > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data\Vera.ttf $HOME=3DC:\Documents and Settings\s0167070 > CONFIGDIR=3DC:\Documents and Settings\s0167070\.matplotlib > loaded ttfcache file C:\Documents and > Settings\s0167070\.matplotlib\ttffont.cache > matplotlib data path > D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32.= eg >g\matplotlib\mpl-data Could not load matplotlib icon: Das Format der > Bilddatei > =BBD:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win= 32.e >gg\matplotlib\mpl-data\matplotlib.svg=AB konnte nicht erkannt werden > backend GTKAgg version 2.8.6 > FigureCanvasAgg.draw > RendererAgg.__init__ > RendererAgg.__init__ width=3D640.0, height=3D480.0 > RendererAgg.__init__ _RendererAgg done > RendererAgg.__init__ done > RendererAgg._get_agg_font > findfont failed Lucida Grande > findfont found Verdana, normal, normal 500, normal, 12.0 > findfont returning c:\windows\fonts\verdana.ttf > cd C:\Documents and Settings\s0167070\.matplotlib\tex.cache & dvipng -bg > Transparent -D 80.0 -T tight -o fbf582591f6e1f6319e619b944c658dc.png > 3bb1bc57100b0c65915bdda3a1f60dae.dvi > Traceback (most recent call last): > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\backends\backend_gtk.py", line 283, in expose_event > self._render_figure(self._pixmap, w, h) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\backends\backend_gtkagg.py", line 72, in _render_figure > FigureCanvasAgg.draw(self) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\backends\backend_agg.py", line 389, in draw > self.figure.draw(renderer) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\figure.py", line 531, in draw > for a in self.axes: a.draw(renderer) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\axes.py", line 1034, in draw > a.draw(renderer) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\axis.py", line 561, in draw > tick.draw(renderer) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\axis.py", line 161, in draw > if self.label1On: self.label1.draw(renderer) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\text.py", line 1167, in draw > Text.draw(self, renderer) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\text.py", line 339, in draw > bbox, info =3D self._get_layout(renderer) > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\text.py", line 186, in _get_layout > w,h =3D renderer.get_text_width_height( > File > "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\backends\backend_agg.py", line 239, in get_text_width_height > Z =3D texmanager.get_rgba(s, size, self.dpi.get(), rgb) > File > "D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\texmanager.py", line 409, in get_rgba > pngfile =3D self.make_png(tex, fontsize, dpi, force=3DFalse) > File > "D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32= =2Ee >gg\matplotlib\texmanager.py", line 245, in make_png > if exit_status: raise RuntimeError('dvipng was not able to \ > RuntimeError: dvipng was not able to process the flowing file: > C:\Documents and > Settings\s0167070\.matplotlib\tex.cache3円bb1bc57100b0c65915bdda3a1f60dae.= dv >i Here is the full report generated by dvipng: > > 3bb1bc57100b0c65915bdda3a1f60dae.dvi: No such file or directory > > This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson > > >Exit code: 0 Time: 4.344 > > Darren Dale schrieb: > > I'm attaching two files. They should overwrite the existing texmanager > > file in site-packages/matplotlib and the backend_ps file in > > site-packages/matplotlib/backends. I would appreciate it if some windows > > users trying to get usetex working with mpl-0.87.3 would test these. I'm > > really surprised at all this trouble, I guess I've become very far > > removed from the windows experience. I dug a windows harddisk out of the > > back of my closet and was able to get usetex working with a standard > > windows XP setup, so there should be no need to change your $HOME or > > anything like that. > > > > > > Thanks, > > Darren > > > > On Monday 12 June 2006 10:34, Wolfgang wrote: > >> Hello Darren, > >> > >> the & is also in my solution! and I always had to change "%s" to %s > >> and I also added a 'c:' before the cd because " cd c:\temp\ " is not > >> working when the command is starten from d: > >> > >> so finally I have: > >> c: & cd %s & latex -interaction=3Dnonstopmode %s ... > >> > >> But I thinks this is not enough to get dvipng working, so I've changed > >> the $HOME to a path without spaces. > >> > >> Wolfgang > >> > >> If you wan't I can mail you the files which I've changed. > >> > >> Darren Dale schrieb: > >>> Part of the problem is that DOS doesnt allow the semicolon to delimit > >>> multiple commands. I made a little bit of progress by changing every > >>> 'cd "%s"; ...' to 'cd "%s" & ...'. At that point, dvipng starts > >>> complaining about the dvifile not existing. The frustrating part is > >>> that I can copy that exact command into a dos prompt and dvipng > >>> processes the dvi file just fine. I'm about ready to plead insanity. > >>> > >>> On Monday 12 June 2006 08:55, Wolfgang wrote: > >>>> I have Miktex running. But finally dvipng had problems with the path > >>>> which included spaces. > >>>> > >>>> Wolfgang > >>>> > >>>> Ryan Krauss schrieb: > >>>>> Which LaTeX distribution are you using on windows? TexLive handles > >>>>> paths much more poorly than MikTeX. > >>>>> > >>>>> On 6/12/06, Wolfgang <wo...@gm...> wrote: > >>>>>> Finally I changed in matplotlib/__init__.py the evaluation of $HOME > >>>>>> to a path without spaces because all files are transfered to > >>>>>> $HOME.matplotlib/tex.cache/ instead of $TEMP > >>>>>> > >>>>>> I also had to change in texmanager.py some of the "%s" to %s > >>>>>> > >>>>>> I think someone with more experience in programming should check t= he > >>>>>> path handling on windows (regarding to spaces in the path) > >>>>>> > >>>>>> I would also suggest that temporary files go into a path which is > >>>>>> based on $TMP. > >>>>>> > >>>>>> Wolfgang > >>>>>> > >>>>>> ------------------------------------------------------------------= =2D- > >>>>>>---- > >>>>>> > >>>>>> _______________________________________________ > >>>>>> Matplotlib-users mailing list > >>>>>> Mat...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users =2D-=20 Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-9894 fax: (607) 255-9001
Hi all, I have generated some figures with matplotlib (savefig('test.png') savefig(test.jpg')). If I try to include them via \includegraphics[width=8cm]{test.jpg} I get LaTeX Error: Cannot determine size of graphic in test.jpg (no BoundingBox). I am using latest svn versions of numpy/scipy and matplotlib. Any idea how to fix this problem ? Nils