[Matplotlib-users] Publish to HTML

2009-12-03 Thread David Arnold
All. I see the Sphinx tutorial Sampledoc on the Matplotlib site and am working through the tutorial. This semester, my students have really enjoyed using Matlab's publish to HTML tool, then they upload the resulting files to their Drop Box on our Sakai course management system. I am wonderi

Re: [Matplotlib-users] How to display axis numbers inside the figure area

2009-12-03 Thread Pekeika
Matthias, And I saw your code now :) and it pretty much looks like mine, with some more or less formatting. Attached is one of my figures where you can see my result! http://old.nabble.com/file/p26634326/Spill%2BVerification%2Bof%2Btwenty%252C%2Bhigh%2Bu%2Bagain%2Bafter%2Bchange%2Bpredicted%2Bat

Re: [Matplotlib-users] How to display axis numbers inside the figure area

2009-12-03 Thread Pekeika
Matthias, Thanks for answering. I already solved my problem. I found that there is no function to display on grids the value of the axis (bad when you need to display lat, longitude)... so I made it myself using the text() function and using yticks() and xticks() along with all the formatting pro

Re: [Matplotlib-users] Plotting curves filled with nonuniform color patch

2009-12-03 Thread Tony S Yu
On Dec 3, 2009, at 3:58 PM, Jae-Joon Lee wrote: > line 1486 of _backend_agg.cpp says > > /* TODO: Support clip paths */ > > So, it seems that, apparently, clipping with arbitrary path has not > been implemented yet for gouraud shading (pcolormesh will be properly > clipped if shading is not us

Re: [Matplotlib-users] AxesGrid problem.

2009-12-03 Thread Jae-Joon Lee
On Thu, Dec 3, 2009 at 3:40 PM, Ryan Neve wrote: > > I tried all sorts of things, but finally, by setting aspect=False I got it > to work. In the documentation, the table says this defaults to True and the > explanation of aspect below says it defaults to False. Although I don't > entirely unders

Re: [Matplotlib-users] Plotting curves filled with nonuniform color patch

2009-12-03 Thread Jae-Joon Lee
line 1486 of _backend_agg.cpp says /* TODO: Support clip paths */ So, it seems that, apparently, clipping with arbitrary path has not been implemented yet for gouraud shading (pcolormesh will be properly clipped if shading is not used). I hope Michael pick this up some time soon. Meanwhile, yo

Re: [Matplotlib-users] AxesGrid problem.

2009-12-03 Thread Ryan Neve
Thank You, I think I have a better understanding. In my figure, there are six axes, three for the plots: grid[i] and three for their colorbars: grid.cbar_axes[i]. I changed my code as you suggested and got something like: [image: UKM0g.png] I tried all sorts of things, but finally, by setting aspec

[Matplotlib-users] numpy loadtxt and comments

2009-12-03 Thread Peter I. Hansen
Hi All Not really about matplotlib, but since the load() function was removed it seems we have to use numpy.loadtxt in stead. I'm reading some datafiles that have comment line beginning with both '#' and '@'. Is there a way to assign two different values to the 'comments' keyword? Thanks, Peter

Re: [Matplotlib-users] How to display axis numbers inside the figure area

2009-12-03 Thread Matthias Michler
Hi Angelica, I have to admit I don't get the point of what you want to do and maybe this is true for others too. I tried something (see attachement), but maybe it is better if you could set up an small example script or draw a picture of what you want to see finally. Kind regards, Matthias On

Re: [Matplotlib-users] Cross axis arrows

2009-12-03 Thread Jae-Joon Lee
You need to add the patch to the second axes. patch = ConnectionPatch((.5, .5), (.7, .3), 'data', 'data', axesA=ax1, axesB=ax2, zorder=100, arrowstyle='fancy', connectionstyle='Angle3', mutation_scale=1

Re: [Matplotlib-users] usetex=True and savefig(eps-file)

2009-12-03 Thread Matthias Michler
Hi Jouni, thanks again for your advice. I don't think that I do have 'some setting that causes temporary files to end up in the root directory", because my system is more or less kubuntu (8.04) out of the box. But maybe you are nevertheless right, because in tmp there are ./root and ./lost+fo

Re: [Matplotlib-users] usetex=True and savefig(eps-file)

2009-12-03 Thread Jouni K . Seppänen
Matthias Michler writes: > Do you know why is happens only for ps/eps-files? The ps backend uses TeX in a different way than the other backends. It uses psfrag and dvips to construct the final file. >> Have you set any TeX-related environment variables or edited any >> configuration files? Wha

[Matplotlib-users] Cross axis arrows

2009-12-03 Thread Stephane Raynaud
Hi, how to make this arrow not disappear below the right plot? Here is the code : from matplotlib.patches import * import matplotlib.pyplot as P P.figure(figsize=(5, 3)) ax1 = P.subplot(121) P.plot([0, 1]) ax2 = P.subplot(122) P.plot([

Re: [Matplotlib-users] Output to any vector format openoffice can use

2009-12-03 Thread gbollenbach
Inkscape's native format is svg and it exports in .odg, which OO should be able to use. I did a test combining a svg vector and png raster and then saving as .odg, and it wrote the file. But I don't have OO so I can't try to import the result. regards, Gary B marcusantonius wrote: > > I am s

Re: [Matplotlib-users] Extending patches.Rectangle class

2009-12-03 Thread Jorge Scandaliaris
Jae-Joon Lee writes: <...> > > It depends on your mileage. > > However, a patch in matplotlib usually means a closed path. If you add > additional lines, you need to be careful not to mess the filling of > the rectangle. > > I guess it would better to simply use separate artists for additional

Re: [Matplotlib-users] usetex=True and savefig(eps-file)

2009-12-03 Thread Matthias Michler
Hi Jouni, Thanks for your explaination. On Wednesday 02 December 2009 17:20:37 Jouni K. Seppänen wrote: > Matthias Michler writes: > > ./root/article.cls.tex: Permission denied > > ./root/article.cls: Permission denied > > ./lost+found/article.cls.tex: Permission denied > > ./lost+found/article.

Re: [Matplotlib-users] mplot3d: plot_surface() and contour on grid?

2009-12-03 Thread Matthias Michler
Thanks a lot! Regards, Matthias On Wednesday 02 December 2009 17:10:54 Reinier Heeres wrote: > Hi Matthias, > > I have a similar patch lying around somewhere, and I will try to apply > it soon. I've been terribly busy lately, but I expect some nice > mplot3d enhancements in the very near future.

Re: [Matplotlib-users] Output to any vector format openoffice can use

2009-12-03 Thread marcusantonius
Thak you very much for pointing this out to me. I was not aware that Inkscape is able to output to .odg. Unfortunatly export into .odg works badly. I converted .svg files, and both were rendered totally incorrect. All the axes labels vanished, in a lineplot it connected the end of the line to the