Re: [Matplotlib-users] savefig as pdf not generating vector graphics?

2009-06-28 Thread Jouni K . Seppänen
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.

Re: [Matplotlib-users] exporting PYTHONPATH causes matplotlib not to load

2009-06-09 Thread Jouni K . Seppänen
n module. To avoid this problem, either rename the directory to e.g. "mpl" or move it to some directory that is not on your Python path. ''' % __name__ -- Jouni K. Seppänen http://www.iki.fi/jks ---

Re: [Matplotlib-users] plots do not scale to size

2009-06-09 Thread Jouni K . Seppänen
is it OK to get different-looking results in png and pdf? -- Jouni K. Seppänen http://www.iki.fi/jks -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited

Re: [Matplotlib-users] Failure to build due to missing X?

2009-05-24 Thread Jouni K . Seppänen
AY= python setup.py install --prefix=/d/facets/contrib -- Jouni K. Seppänen http://www.iki.fi/jks -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers

Re: [Matplotlib-users] Error from ``python setupegg.py develop`` using trunk

2009-05-19 Thread Jouni K . Seppänen
es = _build_ext.swig_sources(self, sources) or sources >> TypeError: swig_sources() takes exactly 3 arguments (2 given) Sounds like a setuptools problem. Perhaps updating setuptools (easy_install -U setuptools) will help. -- Jouni K. Seppänen http://www.iki.fi/jks ---

Re: [Matplotlib-users] Error building from source - Ubuntu

2009-05-18 Thread Jouni K . Seppänen
error I've pasted below. First run "apt-get build-dep python-matplotlib" to install the packages that are needed to build matplotlib. Or, if you think you may want to uninstall them later, see http://www.enricozini.org/2008/tips/undoable-aptget-builddep.ht

Re: [Matplotlib-users] Reducing png file size

2009-05-17 Thread Jouni K . Seppänen
roduce similar-looking images, you could fix the palette off-line using whatever fancy algorithm you like, and then the actual conversion could be done pretty fast, especially if you can forgo dithering - perhaps for many types of charts it is not necessa

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-14 Thread Jouni K . Seppänen
th percentiles of the data respectively. I'm too overwhelmed by other stuff to comment at length, but I don't think the whiskers are usually expected to be at the 5th and 95th percentiles: http://en.wikipedia.org/wiki/Box_plot -- Jouni K. Sep

Re: [Matplotlib-users] figuresize and dpi

2009-05-12 Thread Jouni K . Seppänen
e on the screen. I think The GIMP has a dpi calibration dialog where it shows rulers and asks you to measure them with a physical ruler. You might want to install The GIMP, set up the dpi and use it to view your png files. -- Jouni K. Seppänen http:/

Re: [Matplotlib-users] problem with usetex & \color

2009-05-12 Thread Jouni K . Seppänen
/articles/fyti/propvstabfigures.htm I think at least Computer Modern Roman (the default font in TeX) does have tabular figures. -- Jouni K. Seppänen http://www.iki.fi/jks -- The NEW KODAK i700 Series Scanners deliver und

Re: [Matplotlib-users] svn revision number

2009-05-08 Thread Jouni K . Seppänen
on works, 6887 is simply the latest revision in which matplotlib/__init__.py was changed. If you have a Subversion checkout, you can use the svnversion command to find out the revision of the checkout. This could in principle be incorporated into the release process to embed the latest revision somewhe

[Matplotlib-users] OS X binary installer broken on 10.4? (was: O pylab why do you refuse to import?)

2009-05-07 Thread Jouni K . Seppänen
pe.6.dylib >> > Referenced from: >> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so >> > Reason: image not found -- Jouni K. Seppänen http://www.iki.fi/jks ---

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Jouni K . Seppänen
would be my default. That will depend on how Python is configured in Fedora (I have no idea) and what command-line options you use when you install matplotlib. See http://docs.python.org/install/ for the details. -- Jouni K. Seppänen http://ww

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Jouni K . Seppänen
piling matplotlib. -- Jouni K. Seppänen http://www.iki.fi/jks -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-o

Re: [Matplotlib-users] xlabel vertical positioning

2009-04-27 Thread Jouni K . Seppänen
he matplotlib tracker, explaining how the current positioning is insufficient for your needs. -- Jouni K. Seppänen http://www.iki.fi/jks -- Register Now & Save for Velocity, the Web Performance & Operations Co

Re: [Matplotlib-users] Interactive backends very (suprisingly?) slow for multiple subplots

2009-04-27 Thread Jouni K . Seppänen
ctiveness. -- Jouni K. Seppänen http://www.iki.fi/jks -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report e

Re: [Matplotlib-users] custom symbols for scatter

2009-04-27 Thread Jouni K . Seppänen
and put multiple copies of it at various coordinates, but I don't think this is well-supported currently. -- Jouni K. Seppänen http://www.iki.fi/jks -- Crystal Reports - New Free Runtime and 30 Day Trial Check o

Re: [Matplotlib-users] line properties

2009-04-27 Thread Jouni K . Seppänen
the tutorial, though: http://matplotlib.sourceforge.net/users/pyplot_tutorial.html#id2 -- Jouni K. Seppänen http://www.iki.fi/jks -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensig

Re: [Matplotlib-users] label arbitrary strings on xaxis as in date mode

2009-04-25 Thread Jouni K . Seppänen
e(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue'), rotation=45) -- Jouni K. Seppänen http://www.iki.fi/jks -- Crystal Reports - New Free Runtime and 30 Day Trial Check out th

Re: [Matplotlib-users] label arbitrary strings on xaxis as in date mode

2009-04-25 Thread Jouni K . Seppänen
wfpunch writes: > Is it possible to create an axis labe, much like done for dates, using > arbitrary strings. For example, I'd like to plot word frequency where the > x-axis labels are the words and the y-axis the frequency. Does xticks do what you want? -- Jouni K. Seppänen htt

Re: [Matplotlib-users] two scales in the same plot

2009-04-24 Thread Jouni K . Seppänen
highlight=twinx#matplotlib.pyplot.twinx -- Jouni K. Seppänen http://www.iki.fi/jks -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited roy

[Matplotlib-users] mail-archive URLs on gmane (was: 2 simple ??: program exit w/graph, update graph real-time)

2009-04-24 Thread Jouni K . Seppänen
ndom-garbage public.gmane.org with matplotlib-users lists.sourceforge.net (where I am writing instead of @ to evade the gmane mangler). I wonder if URL-escaping the at sign helps: http://www.mail-archive.com/matplotlib-users%40lists.sourceforge.net/msg10873.html -- Jou

Re: [Matplotlib-users] Matplotlib on OS X 10.4

2009-04-23 Thread Jouni K . Seppänen
e). If you somehow managed to install it into your Python 2.6 hierarchy, that would explain the strange error messages. -- Jouni K. Seppänen http://www.iki.fi/jks -- Crystal Reports - New Free Runtime and 30 Day Trial

Re: [Matplotlib-users] Hardcoded DPI settings in PDF and Cairo backends

2009-04-23 Thread Jouni K . Seppänen
of the pages produced by the pdf backend, not the resolution. But since revision 6645 (release version 0.98.5.2) the dpi argument should set the resolution of images again. (I think this used to work before the Great Transform Refactoring, so in versions on the 0.91 branch it should work, too.)

Re: [Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread Jouni K . Seppänen
e X Display, is $DISPLAY set properly? This has probably nothing to do with the way you specify colors. For some reason matplotlib is using an interactive backend. Make sure that your script starts with import matplotlib matplotlib.use('Agg') or that you specify the Agg backend in your matplo

Re: [Matplotlib-users] can't import pylab

2009-04-22 Thread Jouni K . Seppänen
ne.org/gmane.comp.python.numeric.general/29635/focus=17135 -- Jouni K. Seppänen http://www.iki.fi/jks -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread Jouni K . Seppänen
therwise it raises the following exception: > ValueError: string size must be a multiple of element size -- Jouni K. Seppänen http://www.iki.fi/jks -- Stay on top of everything new and different, both inside and aro

[Matplotlib-users] Matplotlib on OS X 10.4 (was: can't import pylab)

2009-04-21 Thread Jouni K . Seppänen
y Python are inherited by extensions - but if there is something other than just compiler flags to worry about, someone would have to have an installation of the target version of OS X to test on. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] can't import pylab

2009-04-20 Thread Jouni K . Seppänen
ython2.6/site-packages/matplotlib cp ft2font.so ft2font.so.bak install_name_tool -change /usr/X11R6/lib/libfreetype.6.dylib \ /usr/X11/lib/libfreetype.6.dylib ft2font.so If not, copy ft2font.so.bak back over the modified ft2font.so to prevent the attempt

Re: [Matplotlib-users] How to plot 2d histogram with the same scale!!

2009-04-13 Thread Jouni K . Seppänen
, norm=norm); colorbar() figure(); contourf(data2, norm=norm); colorbar() -- Jouni K. Seppänen http://www.iki.fi/jks -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download

Re: [Matplotlib-users] Localization in mpl

2009-04-08 Thread Jouni K . Seppänen
.edu.sg/aslaksen/cs/cjk.html will get you started if you want to go the TeX route. -- Jouni K. Seppänen http://www.iki.fi/jks -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Envir

Re: [Matplotlib-users] non-numeric data

2009-04-07 Thread Jouni K . Seppänen
= x if x > maxx: maxx = x for i,ch in enumerate(fields[1:]): ax.text(x, header[i], ch, fontdict, color=colors[ch]) ax.set_xlim(minx, maxx+1) ax.set_ylim(min(header)-.5, max(header)+.5) plt.show() -- Jouni K. Seppänen http://www.iki.fi/jks ---

Re: [Matplotlib-users] plot() in a loop vs multiple curves with a single plot()

2009-04-06 Thread Jouni K . Seppänen
7;],x['field']] for x in data] ax.plot(*np.concatenate(data)) would work. But I don't know if it's really any more efficient. For large plots, you may want to take a look at collections: http://matplotlib.sourcefor

Re: [Matplotlib-users] making the space between ticks

2009-04-06 Thread Jouni K . Seppänen
x27;$a\ b$', r'$a\,b$', r'$a\;b$', r'$a\!b$' (negative space) and r'$a\quad b$' work. Perhaps you can update to a newer version of matplotlib? -- Jouni K. Seppänen http://www.iki.fi/jks -

Re: [Matplotlib-users] Warning from pylab.plot on Linux

2009-03-31 Thread Jouni K . Seppänen
s this is a GTK or GTKAgg backend thing, and could be resolved simply by switching to e.g. TkAgg. -- Jouni K. Seppänen http://www.iki.fi/jks -- ___ Matplotlib-users mail

Re: [Matplotlib-users] padding when saving to a file

2009-03-30 Thread Jouni K . Seppänen
xes([0,0,1,1],frameon=False) instead - add_subplot reserves some space for a title, axis labels, etc. -- Jouni K. Seppänen http://www.iki.fi/jks -- ___ Matplotlib-users

Re: [Matplotlib-users] problems installing matplotlib

2009-03-25 Thread Jouni K . Seppänen
m not all that familiar with > python in general. One slightly subtle thing is that if PKG_CONFIG_PATH is used to determine which version of freetype gets used - setupext.py calls pkg-config to find the compilation flags.

Re: [Matplotlib-users]   gnuplot.py use: does no t recognize 'aqua' Term.

2009-03-24 Thread Jouni K . Seppänen
me > googling) and reinstalled gnuplot.py, but I still get the message. Sounds like you need to recompile gnuplot, and perhaps pass an --enable-aquaterm option (or similar) to configure (or however it is that you configure gnuplot for compiling).

Re: [Matplotlib-users] 3D plots

2009-03-23 Thread Jouni K . Seppänen
ntly some people have started to work on the 3D code: http://thread.gmane.org/gmane.comp.python.matplotlib.devel/6672/focus=6691 If you want to be able to make 3D plots with Matplotlib, perhaps you could find a way to help with this effort. --

Re: [Matplotlib-users] float argument required

2009-03-23 Thread Jouni K . Seppänen
ally if there is a difference between PDF and Agg-based backends. -- Jouni K. Seppänen http://www.iki.fi/jks -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cro

Re: [Matplotlib-users] quick numpy question

2009-03-17 Thread Jouni K . Seppänen
'union' from 2 or more > arrays or individual elements). Try np.union1d (and note that the numpy book has been in the public domain since August: http://www.tramy.us/guidetoscipy.html ) -- Jouni K. Seppä

Re: [Matplotlib-users] problem with contour() & basemap; contours overlapping map

2009-03-16 Thread Jouni K . Seppänen
examples/pylab_examples/zorder_demo.html -- Jouni K. Seppänen http://www.iki.fi/jks -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickl

Re: [Matplotlib-users] problems with contourf & alpha

2009-03-16 Thread Jouni K . Seppänen
Pablo Romero writes: > Im having an issue where contourf is producing visible defects in the > shaded contours (within png output) with alpha values that are less > then 1.0. Looks like the same problem as this one: http://thread.gmane.org/gmane.comp.python.matplotlib.general/16225 --

Re: [Matplotlib-users] pdf backend always uses solid_joinstyle="miter"

2009-03-10 Thread Jouni K . Seppänen
Jörgen Stenarson writes: > I have been unable to get the pdf backend to respect the settings for > solid_joinstyle properly. Fixed on the trunk; the test case is examples/api/joinstyle.py. Thanks for your report! -- Jouni K. Seppänen http://www.iki.

Re: [Matplotlib-users] using tex in labels but retaining sans-serif font

2009-03-03 Thread Jouni K . Seppänen
;: ('cmss', ''), 'helvetica': ('phv', r'\usepackage{helvet}'), 'avant garde': ('pag', r'\usepackage{avant}'), 'courier': ('pcr', r'\usepackage{courier}&

Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Jouni K . Seppänen
sion is set to 0, the string should not occur (except of course if you use it in a figure title or other text), if it is set to any other value, the string should occur. -- Jouni K. Seppänen http://www.iki.fi/jks --

Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Jouni K . Seppänen
calls to start_rasterizing in the current code. Perhaps there was some difficulty with this approach. -- Jouni K. Seppänen http://www.iki.fi/jks -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,

Re: [Matplotlib-users] pylab_examples image_clip_path.py not working for pdf

2009-02-26 Thread Jouni K . Seppänen
Haibao Tang writes: > Any ideas? Yes, image clipping was unimplemented in the pdf backend. I added an implementation (both on the trunk and on the 0.98.5 branch) that at least gets this example and the dolphin right - please test it if you have some other use case. -- Jouni K. Seppänen h

Re: [Matplotlib-users] eps quality

2009-02-18 Thread Jouni K . Seppänen
default dpi value changed quite some time ago. Does e.g. savefig('foo.eps', dpi=300) create a better-quality, larger file? -- Jouni K. Seppänen http://www.iki.fi/jks -- Open Source Business Conference (OSBC),

Re: [Matplotlib-users] Strange behavior with arange : bug?

2009-02-12 Thread Jouni K . Seppänen
In [4]: linspace(0.5,1.0,num=5,endpoint=False) Out[4]: array([ 0.5, 0.6, 0.7, 0.8, 0.9]) In [5]: linspace(0.5,1.1,num=6,endpoint=False) Out[5]: array([ 0.5, 0.6, 0.7, 0.8, 0.9, 1. ]) -- Jouni K. Seppänen http://www.iki.fi/jks --

Re: [Matplotlib-users] Memory leaks in a web application

2009-02-09 Thread Jouni K . Seppänen
That said, there have been cases of memory leaks caused by circular references among objects that have __del__ methods. I think all known leaks have been fixed, but if I were deploying a long-lived application that creates lots of figures, I would definitely want to watch its memory usage in my

Re: [Matplotlib-users] Memory leaks in a web application

2009-02-08 Thread Jouni K . Seppänen
ttp://matplotlib.sourceforge.net/leftwich_tut.txt -- Jouni K. Seppänen http://www.iki.fi/jks -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can

Re: [Matplotlib-users] x-axis line in bar plots

2009-02-02 Thread Jouni K . Seppänen
Ramashish Baranwal writes: > x = range(10) > y = [random.randint(-10, 10) for i in x] > bar(x, y) > > What I want is a line to be drawn at y=0. Any idea how to get it done? How about axhline: axhline(color='k', lw=1) See the documentation of axhline (and hline

Re: [Matplotlib-users] Change Hue-Range in HSV color map

2009-02-01 Thread Jouni K . Seppänen
27;: ((0., 0., 0.),(0.33, 0.00, 0.00), (0.349206, 0.062500, 0.062500),(0.507937, 1.00, 1.00), (0.67, 1.00, 1.00))} for k,v in data.items(): data[k] = [(a/0.67, b, c) for (a,b,c) in v] myhsv = matplotlib.colors.LinearSegmentedCo

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread Jouni K . Seppänen
the resolution will get passed to the PolarAxes instance. -- Jouni K. Seppänen http://www.iki.fi/jks -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf

Re: [Matplotlib-users] bounding box again

2009-01-26 Thread Jouni K . Seppänen
Willi Richert writes: >> > Isn't there a convenient way just to not plot the big white rectangle in >> > matplotlib? >> >> It seems that >> >> fig=plt.figure(frameon=False) >> >> omits the rectangle. > > in my version 0.98.5 frameon=False (as a subplot argument) just omits the > black lines at

Re: [Matplotlib-users] bounding box again

2009-01-26 Thread Jouni K . Seppänen
Willi Richert writes: > Isn't there a convenient way just to not plot the big white rectangle in > matplotlib? It seems that fig=plt.figure(frameon=False) omits the rectangle. -- Jouni K. Seppänen http://www

Re: [Matplotlib-users] multiline LaTeX code

2009-01-13 Thread Jouni K . Seppänen
EREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. After adding that setting, this works for me: In [1]: t = r''' ...: \begin{equation*} ...: x(t) = ...: \begin{cases} ...: 1, \quad & t \ge 0 \\

Re: [Matplotlib-users] All CM fonts

2009-01-12 Thread Jouni K . Seppänen
ter Modern Sans Serif font.serif: Computer Modern Roman font.monospace: Computer Modern Typewriter -- Jouni K. Seppänen http://www.iki.fi/jks -- This SF.net email is sponsored by: So

Re: [Matplotlib-users] Switching between different font settings

2009-01-07 Thread Jouni K . Seppänen
r the font of the numbers, I think you could just wrap every number in \textsf{...}, but there could be problems with spacing. > I've tried to set 'mathtext.rm': 'sans-serif' in my params dict The mathtext options have no effect in usetex mode - every

Re: [Matplotlib-users] Switching between different font settings

2009-01-05 Thread Jouni K . Seppänen
27;'), 'computer modern sans serif': ('cmss', ''), 'computer modern typewriter': ('cmtt', '')} What font are you trying to use? Is it one of those listed above? Since you say that you get the right font for legends and labels but not for tick labels, perhaps the problem is with math mode. What font do you get if you typeset a formula? Try something like text(r'$1+2+3={}$1+2+3') to see if the math font is different from the text font. -- Jouni K. Seppänen http://www.iki.fi/jks -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: [Matplotlib-users] Fuzzy plots of ode solutions

2008-12-31 Thread Jouni K . Seppänen
a part of) the agg and pdf outputs when the join style is 'miter'. -- Jouni K. Seppänen http://www.iki.fi/jks #!/usr/bin/env python import numpy as np import matplotlib import pylab def plot_angle(ax, x, y, angle, style): phi = angle/180*np.pi xx = [x+.5,x,x+.5*np.cos(phi)]

Re: [Matplotlib-users] Savefig('file.pdf') error with latex custom font

2008-12-29 Thread Jouni K . Seppänen
r-visible change should be that some custom LaTeX fonts now work (specifically, large fonts such as Minion Pro and MnSymbol that need several different encodings), the changes in backend_pdf.py were big enough that I'm hesitant to check this in on the maintenance bran

Re: [Matplotlib-users] (no subject)

2008-12-20 Thread jouni k seppänen
Jae-Joon Lee writes: > > It seems as a bug in the pdf backend, which can be fixed by the simple > patch below. I didn't commit this fix as I think it would be better if > original author (Jouni?) make sure this is a correct way. Your patch is correct - I probably copy-pasted the cache code from

Re: [Matplotlib-users] svn problems

2008-12-16 Thread Jouni K . Seppänen
then we could just add the encoding specification and > everything will work. Does "LC_ALL=C svn update" work for you? The bug report http://subversion.tigris.org/issues/show_bug.cgi?id=2332 implies that it always uses UTF-8, so putting an encoding cookie in the file might be the easie

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread Jouni K . Seppänen
t "leg.get_texts()" with "AttributeError: 'Legend' object has no attribute 'texts'". Calling show() seems to fix the legend so that get_texts works, so I suspect that the bug is related to the _init_legend_box call that

[Matplotlib-users] figimage and image magnification (was: imshow with pdf)

2008-12-15 Thread Jouni K . Seppänen
h the pdf output of figimage_demo.py looks similar to the Agg output, but after applying the patch it looks different.) Ideas, anyone? -- Jouni K. Seppänen http://www.iki.fi/jks Index: lib/matplotlib/backends/backend_pdf.py === --- l

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread Jouni K . Seppänen
February but never got around to fixing. I'll take a closer look at this later. -- Jouni K. Seppänen http://www.iki.fi/jks -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of t

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread Jouni K . Seppänen
nto this tonight (Finnish time). Thanks for the report! -- Jouni K. Seppänen http://www.iki.fi/jks -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen wit

Re: [Matplotlib-users] Fuzzy plots of ode solutions

2008-12-13 Thread Jouni K . Seppänen
turn off antialiasing > in PDF, and could we add support for this in the backend? Unfortunately, there is no way (that I know of) to turn off antialiasing in the pdf file. -- Jouni K. Seppänen http://www.iki.fi/jks -

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Jouni K . Seppänen
that the latest version on the trunk works (either by updating from svn or by applying the attached patch)? Have you run into any other problems? What TeX distribution are you using? -- Jouni K. Seppänen http://www.iki.fi/jks Index: lib/matplotlib/dviread.py

Re: [Matplotlib-users] saving figures on OS X

2008-11-09 Thread Jouni K . Seppänen
no errors when i don't use the tex. I tried to fix one possible cause of this in dviread. Can you update to the latest trunk version and see if you keep having the same problem with usetex enabled? -- Jouni K. Seppänen http://www.iki.fi/jks ---

Re: [Matplotlib-users] weird line in histogram

2008-11-09 Thread Jouni K . Seppänen
g of hist says "Compute the histogram of *x*", which is misleading because it draws the histogram. I'll fix the docstring. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.Net email is sponsored by the Mobl

Re: [Matplotlib-users] saving figures on OS X

2008-11-07 Thread Jouni K . Seppänen
Gideon Simpson <[EMAIL PROTECTED]> writes: > Verbose output attached: It looks like it is happening in dviread. Just to make sure this is the culprit, could you temporarily disable usetex in your matplotlibrc file and see if the error goes away? -- Jouni K. Seppänen http://www.i

Re: [Matplotlib-users] saving figures on OS X

2008-11-07 Thread Jouni K . Seppänen
Could you repeat this with --verbose-debug-annoying and send the output to this list (or open a bug in the sourceforge tracker and attach the output as a file)? -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.Net ema

Re: [Matplotlib-users] Savefig('file.pdf') error with latex custom font

2008-10-23 Thread Jouni K . Seppänen
mediate problem, so you should no longer get an exception with the latest trunk version of matplotlib. However, the output seems to have some encoding problems. I will look into the encoding issue, but cannot promise any particular time frame for a solution. If using the Postscript backend and then con

Re: [Matplotlib-users] Savefig('file.pdf') error with latex custom font

2008-10-22 Thread Jouni K . Seppänen
ge(0, max(tfm.width)) ] > ValueError: max() arg is an empty sequence -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux bas

Re: [Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-14 Thread Jouni K . Seppänen
Jouni K. Seppänen <[EMAIL PROTECTED]> writes: > 2008-03-23 Fix a pdf backend bug which sometimes caused the outermost > gsave to not be balanced with a grestore. - JKS > > Can you upgrade to 0.91.4? Here's the relevant patch, in case applying it is more co

Re: [Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-14 Thread Jouni K . Seppänen
ery well be the cause of your problem: 2008-03-23 Fix a pdf backend bug which sometimes caused the outermost gsave to not be balanced with a grestore. - JKS ... 2008-01-06 Released 0.91.2 at revision 4802 Can you upgrade to 0.91.4? -- Jouni K. Seppänen http://www.ik

Re: [Matplotlib-users] Invalid (trancated) PDFs in Web application

2008-10-11 Thread Jouni K . Seppänen
Jouni K. Seppänen <[EMAIL PROTECTED]> writes: > Torsten Bronger <[EMAIL PROTECTED]> writes: > >> Does anybody has an idea at which point and why Matplotlib stops >> working? ... > if not self.passed_in_file_object: > self.fh.close() I won

Re: [Matplotlib-users] Invalid (trancated) PDFs in Web application

2008-10-11 Thread Jouni K . Seppänen
self.writeTrailer() if not self.passed_in_file_object: self.fh.close() So it looks like writeMarkers() has been called but writeXref() has not. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.Net

Re: [Matplotlib-users] Problem in afm.py with 0.98.3

2008-10-05 Thread Jouni K . Seppänen
t seems that both are in fact optional attributes. I have committed a change (on the trunk, and in the maintenance branch) that should fix this, but since I don't have any AFM files like this, I can't check that it works. Can you check out either the trunk or the maintenance branch from

Re: [Matplotlib-users] how to change line colors of a boxplot

2008-09-29 Thread Jouni K . Seppänen
None, None, None, None, None] This allows you to set the various drawing parameters of the different parts separately, e.g.: In [5]: setp(r['whiskers'], color='black', lw=2) -- Jouni K. Seppänen http://www.iki.fi/jks ---

Re: [Matplotlib-users] imshow inconsistency from version 0.91 to 0.98

2008-09-25 Thread Jouni K . Seppänen
e output file img.flipud_out() If I comment out the flipud_out method calls in 0.98, it works correctly with this example but gets image_origin.pdf wrong. I'm at a loss to figure out the difference between image_origin.py and Haibao Tang's script. Does anyone have a

Re: [Matplotlib-users] ugly arrow with xpdf

2008-09-07 Thread Jouni K . Seppänen
I finally committed this fix. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK &

Re: [Matplotlib-users] ugly arrow with xpdf

2008-06-02 Thread Jouni K . Seppänen
row[-2::-1]]) else: raise ValueError, "Got unknown shape: %s" % shape cx = float(dx)/distance -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email i

Re: [Matplotlib-users] ugly arrow with xpdf

2008-06-02 Thread Jouni K . Seppänen
ndering in another viewer? I think the list doesn't accept attachments, so it would be best if you could put the files somewhere on the web and send a link to the list or, failing that, send the screenshots to me by email. Also, what exact version of xpdf are you using? -- Jouni K. Seppäne

Re: [Matplotlib-users] changing ticklabels color

2008-05-22 Thread Jouni K . Seppänen
the setp shortcut: p.setp(ax1.get_yticklabels(), color='r') -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual

Re: [Matplotlib-users] Set the right reply adress

2008-05-22 Thread Jouni K . Seppänen
ne has a web page somewhere, too. On lists that do not munge the reply-to address, such as the matplotlib lists, you have two options: you can reply to the sender only ('r' in mutt) or reply to everyone ('g'). On lists that do munge the address, both commands reply to the compl

Re: [Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread Jouni K . Seppänen
abel objects in the order you draw them, and the histogram plot happens to consist of several similarly-colored objects. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all c

Re: [Matplotlib-users] getting the min and max values of an axis for plotting

2008-05-12 Thread Jouni K . Seppänen
Johann Cohen-Tanugi <[EMAIL PROTECTED]> writes: > I have a function, which I am plotting. I want to add a line positioned > at, say, the mean of the function, so I want to do plot([x,x],[y0,y1]). Try axvline(x). -- Jouni K. Seppänen http://ww

Re: [Matplotlib-users] [newb] batch processing

2008-05-12 Thread Jouni K . Seppänen
e backend by putting something like the following at the start of your script, _before_ importing anything else: import matplotlib matplotlib.use('pdf') -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net

Re: [Matplotlib-users] Type 3 fonts

2008-05-08 Thread Jouni K . Seppänen
ts in the output. If not, it will probably take a little hacking to smuggle a Type 1 font (a pfa or pfb file) past the front end, but the pdf backend should then embed it. -- Jouni K. Seppänen http://www.iki.fi/jks -

Re: [Matplotlib-users] Type 3 fonts

2008-05-08 Thread Jouni K . Seppänen
ts in the output. If not, it will probably take a little hacking to smuggle a Type 1 font (a pfa or pfb file) past the front end, but the pdf backend should then embed it. -- Jouni K. Seppänen http://www.iki.fi/jks -

Re: [Matplotlib-users] markeredgewidth and pdf

2008-04-25 Thread Jouni K . Seppänen
plicate this problem. Could you send me (off-list) the resulting pdf file and a screenshot from your pdf viewer? -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Do

Re: [Matplotlib-users] failed to save in 'eps' format when I use latex environment

2008-04-24 Thread Jouni K . Seppänen
out TeX implementations on Windows, or any commercial implementations. For various reasons, I haven't had much time recently to hack on matplotlib, but improving dviread is high on my todo list when I do find the time. -- Jouni K.

Re: [Matplotlib-users] can any windows 0.91.2 user reproduce

2008-03-25 Thread Jouni K . Seppänen
me are fast. That way you only incur the cost of the hash if the same file is included with multiple names, or in the rare case that two different files have the same size. -- Jouni K. Seppänen http://www.iki.fi/jks - Thi

Re: [Matplotlib-users] can any windows 0.91.2 user reproduce

2008-03-25 Thread Jouni K . Seppänen
, 1194639447) >>> s('/System/Library/Fonts/LucidaGrande.dfont') (33188, 10369L, 234881026L, 1, 0, 0, 2295501L, 1206468480, 1191377895, 1194639447) Stat is a clever way of finding the "real identity" of the file on Unix-like systems. On Windows we clearly need something

Re: [Matplotlib-users] can any windows 0.91.2 user reproduce

2008-03-25 Thread Jouni K . Seppänen
der before I posted. Apparently stat does not do on Windows what this code is expecting it to do. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visua

Re: [Matplotlib-users] needed grp2idx

2008-02-11 Thread Jouni K . Seppänen
package. You refer to "m files", by which I suppose you mean Matlab code. You can find Matlab code at http://www.mathworks.com/matlabcentral/ -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponso

<    1   2   3   4   >