Re: [Matplotlib-users] Getting started with bar charts

2006-08-23 Thread Jouni K Seppänen
[Again copying to matplotlib-users; maybe the main developers can comment on whether these shortcomings in the getp/setp interface should be fixed.] Hi Derek, It does seem as those these settings affect the top and bottom of the graph - I was wondering if it was possible to show

Re: [Matplotlib-users] How to use logarithmic scale with histogram?

2007-02-12 Thread Jouni K . Seppänen
() If the devs agree that this is a bug in hist, I can fix it in svn. -- Jouni K. Seppänen http://www.iki.fi/jks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly

Re: [Matplotlib-users] Symbols below a figure

2007-02-13 Thread Jouni K . Seppänen
not everything is finished yet. I surmise that this is causing your problems. -- Jouni K. Seppänen http://www.iki.fi/jks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre

Re: [Matplotlib-users] setting the default line style order

2007-02-23 Thread Jouni K . Seppänen
-flattening matrices) that we shouldn't emulate. How does that sound? -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get

Re: [Matplotlib-users] setting the default line style order

2007-02-23 Thread Jouni K . Seppänen
Eric Firing [EMAIL PROTECTED] writes: Jouni K. Seppänen wrote: So, to make the interface familiar to Matlab users, I suggest to add properties line.linestyleorder and line.colororder Are you talking about Axes properties (instance attributes) or rcParam entries or both? In any case, I

Re: [Matplotlib-users] Unifying numpy, scipy, and matplotlib docstring formats

2007-02-25 Thread Jouni K . Seppänen
to find all references to functions or variables, and if they don't exist in locals() or globals() and are not the target of an assignment anywhere in the AST, replace them by references to the appropriate package.) -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Jouni K . Seppänen
currently too busy with my day job to do any major hacking on the pdf backend. -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Jouni K . Seppänen
with the converted pdf file? Try opening it in Adobe Reader and viewing Document Properties / Fonts. Do you see any Type 3 fonts, and what are their names? -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence

Re: [Matplotlib-users] invalidrestore

2007-02-26 Thread Jouni K . Seppänen
.) -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Jouni K . Seppänen
what is wrong with them? -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business

Re: [Matplotlib-users] PDF and accentued characters

2007-02-27 Thread Jouni K . Seppänen
Computer Modern Roman as the font?) -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions

Re: [Matplotlib-users] invalidrestore - PDF

2007-03-02 Thread Jouni K . Seppänen
(as does the invalidrestore thing). -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions

Re: [Matplotlib-users] How to make figures transparent by default, leave foreground color to pdflatex?

2007-03-02 Thread Jouni K . Seppänen
it for monochromatic plots quite easily, but it would be much trickier if you want part of the plot in the inherited color and another part in a specified color. -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash

Re: [Matplotlib-users] How to make figures transparent by default, leave foreground color to pdflatex?

2007-03-02 Thread Jouni K . Seppänen
Jouni K. Seppänen [EMAIL PROTECTED] writes: Anand Patil [EMAIL PROTECTED] writes: - When I inserted some of my old pdf plots into a latex presentation, to my surprise their foreground color had changed from black to the color of the text in the presentation. Is there a way to signal

Re: [Matplotlib-users] Axes label

2007-03-02 Thread Jouni K . Seppänen
the values of the ymajor and yminor. This works for me: figure() gca().yaxis.set_major_locator(LinearLocator()) x=arange(0, 7, 0.01) plot(sin(x)) gca().set_ylim((-1.1,1.1)) show() -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] How to draw a straight line?

2007-03-06 Thread Jouni K . Seppänen
the axes, you will want to do something like l=plot([...], [...], transform=gcf().transFigure) setp(l, clip_on=False) For some reason the clip_on keyword argument to plot does not have an effect. This is probably a bug. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] errorbar() makes a LOT of lines

2007-03-10 Thread Jouni K . Seppänen
something like this help with your problem? -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions

Re: [Matplotlib-users] trouble with rcParams

2007-03-10 Thread Jouni K . Seppänen
the markers created by scatter(). -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions

Re: [Matplotlib-users] plots into multi-page pdf

2007-03-10 Thread Jouni K . Seppänen
but ended up with either file I/O problems or too many file opened problem. I was not aware of PyPDF, but it looks like it is being actively developed. Perhaps you could submit a bug report to the author of PyPDF? -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] PDF backend problem

2007-03-12 Thread Jouni K . Seppänen
) +font = AFM(fh) +fh.close() self.afm_font_cache[key] = font return font -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join

Re: [Matplotlib-users] Rotating a subplot counter-clockwise 90 degrees?

2007-03-13 Thread Jouni K . Seppänen
David Fokkema [EMAIL PROTECTED] writes: basically a horizontal cumulative histogram, apart from the fact that the plot should be rotated 90 degrees counter-clockwise. Does hist(..., orientation='horizontal') look right? -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] PDF Backend problem still unresolved

2007-03-17 Thread Jouni K Seppänen
[EMAIL PROTECTED] writes: Starting with the 9th page, MPL chokes at line 1084 in backend_pdf.py Jouni posted a couple of responses witih suggestions in CVS syntax but I was unable to use that information. I had to take my laptop to be to be repaired, so I can't do much work on Matplotlib

Re: [Matplotlib-users] savefig problems

2007-04-06 Thread Jouni K . Seppänen
to accomplish your goal? -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-06 Thread Jouni K . Seppänen
to me. Could you file it at http://sf.net/tracker/?group_id=80706atid=560720 so it isn't forgotten? -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay

Re: [Matplotlib-users] Dendrogram

2007-04-06 Thread Jouni K . Seppänen
the first task is to think about how to specify the input. Matlab's dendrogram function takes a three-column matrix where the first two columns encode a binary tree and the third column holds the cluster distances. I think a more intuitive interface should be possible in Python. -- Jouni K

Re: [Matplotlib-users] a bug in tex formatting?

2007-04-07 Thread Jouni K . Seppänen
to but a raised tilde between two letters, but the error message indicates that the parsing is somehow very different from TeX. -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future

[Matplotlib-users] .notdef (was: a bug in tex formatting?)

2007-04-07 Thread Jouni K . Seppänen
and that isn't a single letter. I'm guessing that could mean a misspelled backslash command or a parsing problem like I mentioned in my previous email where \tilde{} is seen as \tild. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] AttributeError: LineCollection instance has no attribute 'get_lines'

2007-04-07 Thread Jouni K . Seppänen
in revision 2052 by Eric Firing: | r2052 | efiring | 2006-02-11 22:56:42 +0200 (Sat, 11 Feb 2006) | 3 lines | | Add autolim kwarg to axes.add_collection; change get_verts() | methods of collections accordingly. Perhaps Eric knows best how to fix _auto_legend_data()? -- Jouni K. Seppänen http

Re: [Matplotlib-users] AttributeError: LineCollection instance has no attribute 'get_lines'

2007-04-07 Thread Jouni K . Seppänen
? Of the bugs listed at http://sf.net/tracker/?group_id=80706atid=560720 I suspect a few would be simple to fix: 1671570 Invalid CSS 2 styles in SVG output 1650523 inconsistent use of tabs and spaces in indentation 1605288 import pylab with python -OO -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] AttributeError: LineCollection instance has no attribute 'get_lines'

2007-04-07 Thread Jouni K . Seppänen
Jouni K. Seppänen [EMAIL PROTECTED] writes: Eric Firing [EMAIL PROTECTED] writes: Do you know of some other simple bugs like this we should look at ASAP? Of the bugs listed at http://sf.net/tracker/?group_id=80706atid=560720 I suspect a few would be simple to fix: Also I'm not at all

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-10 Thread Jouni K . Seppänen
also makes an incompatible assumption: if normed: - db = bins[1]-bins[0] + db = nbins[1]-nbins[0] return 1/(len(y)*db)*n, bins -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn

Re: [Matplotlib-users] Histogram align 'edge' or 'center' bug?

2007-04-10 Thread Jouni K . Seppänen
. For example, if your bin edges are (2, 4, 8, 16, 32) or (1, 5, 7, 17, 31), you get the same bin centers (3, 6, 12, 24). Perhaps it's best to disallow variable-width bins when align='center'. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] Translating ticks a la MultipleLocator ?

2007-04-10 Thread Jouni K . Seppänen
. Perhaps rephrasing the question using a code example would help make your point clearer. -- Jouni K. Seppänen http://www.iki.fi/jks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel

Re: [Matplotlib-users] Omitting curves from a legend

2007-04-16 Thread Jouni K . Seppänen
: unknown label_props: unknown norm: unknown Or, in ipython you can type z.set_TAB to see the completions. With the list returned from plot you cannot simply type y[0].set_TAB but have to assign the value of y[0] to a variable first. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] pylab.setp - expected behaviour?

2007-04-24 Thread Jouni K . Seppänen
it does the equivalent of (getattr(object, 'set_%s'%prop))(value) which is obviously much slower than the direct object.set_prop(value) So, if you are writing a program, you are better off using the OO interface. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] creating a blank graph with room for hand written tick labels.

2007-05-02 Thread Jouni K . Seppänen
of the space where the students would write in their own tick marks. A quick hack would be to make non-blank tick marks but cause them to be invisible in another way, e.g. by setting alpha=0 or color='w': yticks(arange(-5,5.2),['0']*10,alpha=0) xticks(arange(1,10),['0']*10,alpha=0) -- Jouni K

[Matplotlib-users] usetex with svg or pdf (was: SVG vs PNG)

2007-05-12 Thread Jouni K . Seppänen
://article.gmane.org/gmane.comp.python.matplotlib.devel/2687 I have no idea how difficult it would be to get this working in the svg backend, but in the pdf backend the biggest hurdle is probably in generalizing the current font support so that the TeX fonts can be embedded. -- Jouni K. Seppänen http

Re: [Matplotlib-users] usetex with svg or pdf

2007-05-12 Thread Jouni K . Seppänen
positions, and run the LaTeX file through pdflatex, because pdftex includes a pdf parser so that you can do \includegraphics{foo.pdf}. So in that sense it may be generalizable, but it won't be a direct port of the ps backend. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] removing all padding / white space around plot

2007-06-03 Thread Jouni K . Seppänen
this line by ax = fig.add_axes((0,0,1,1)) The default subplot axes leave some space for tick labels etc., but this gives you axes spanning the full figure. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net

Re: [Matplotlib-users] legend breaks clf()

2007-06-07 Thread Jouni K . Seppänen
interested in creating a unit test suite for matplotlib, a good way to start could be to identify the intended types of member variables (e.g. list of Line2D objects), run various example scripts and check that the variables have the correct kind of data. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread Jouni K . Seppänen
(), 'ylim') imshow(rand(50,50)) setp(gca(), 'xlim', xlim); setp(gca(), 'ylim', ylim) -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2

Re: [Matplotlib-users] Font problem saving [e]ps

2007-07-07 Thread Jouni K . Seppänen
= font.load_char(unicode, flags=LOAD_NO_SCALE).horiAdvance return cvt(width) + +firstchar, lastchar = 0, 255 widths = [ get_char_width(charcode) for charcode in range(firstchar, lastchar+1) ] widthsObject = self.reserveObject('font widths') -- Jouni K. Seppänen http

Re: [Matplotlib-users] savefig pdf doesn't work anymore

2007-07-18 Thread Jouni K . Seppänen
') -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http

Re: [Matplotlib-users] text element mixed coordinate systems

2007-07-20 Thread Jouni K . Seppänen
Matthew Auger [EMAIL PROTECTED] writes: Hi...I'm interested in plotting text elements with the X value in data coordinates and the Y value in axis coordinates See http://www.scipy.org/Cookbook/Matplotlib/Transformations. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] Latex, Labels and PDF

2007-07-26 Thread Jouni K . Seppänen
John T Whelan [EMAIL PROTECTED] writes: Shouldn't rsome label text ($\mu V$) work? It doesn't work in any released version, but it seems that Michael Droettboom's recent mathtext improvements include this (and much more). -- Jouni K. Seppänen http://www.iki.fi/jks

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

2007-07-26 Thread Jouni K . Seppänen
example of code that behaves like you describe? -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events

Re: [Matplotlib-users] Discrete legend

2007-07-27 Thread Jouni K . Seppänen
in the result. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX

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

2007-07-27 Thread Jouni K . Seppänen
cases for postscript and svg but not pdf, and for some reason defaults to jpeg format when it cannot determine which format was needed. Here's a workaround for now: binDkASyCT9Gy.bin Description: application/python -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] Crashing with a St8bad_cast

2007-07-27 Thread Jouni K . Seppänen
/matplotlib and | build subdirs and get a clean install. Installing a new version over | a pretty old version has been known to cause trouble, segfault, etc. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email

Re: [Matplotlib-users] matplotlib digest...

2007-08-03 Thread Jouni K Seppänen
John Hunter [EMAIL PROTECTED] writes: On 8/3/07, fred [EMAIL PROTECTED] wrote: Is there any tarball for ml archives ? Unfortunately a lot of the mail archive search algorithms are pretty poor. I subscribe over gmail, which has decent search, but I do not have the entire archives. I

Re: [Matplotlib-users] Custom contour labels?

2007-08-06 Thread Jouni K . Seppänen
) CS=contour(A,[50,]) CS.clabel(fmt=FormatFaker('Some String')) show() -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now

Re: [Matplotlib-users] Contour, numbering contourlones

2007-08-06 Thread Jouni K . Seppänen
: http://sourceforge.net/search/?ml_name=matplotlib-userstype_of_search=mlistsgroup_id=80706words=contour http://search.gmane.org/?query=contourgroup=gmane.comp.python.matplotlib.general http://www.mail-archive.com/search?q=contourl=matplotlib-users%40lists.sourceforge.net -- Jouni K. Seppänen http

Re: [Matplotlib-users] tk, pylab and unicode

2007-08-07 Thread Jouni K . Seppänen
) work with usetex=True? -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using

Re: [Matplotlib-users] XPDF works but Ghostscript Doesn't for .eps

2007-08-21 Thread Jouni K . Seppänen
. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser

Re: [Matplotlib-users] matplotlib svn bug: Found an unknown keyword in AFM header...?

2007-08-21 Thread Jouni K . Seppänen
= commands.getstatusoutput(fc-list file) File /Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/commands.py, line 54, in getstatusoutput text = pipe.read() IOError: [Errno 4] Interrupted system call Investigating... -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] matplotlib svn bug: Found an unknown keyword in AFM header...?

2007-08-21 Thread Jouni K . Seppänen
Jouni K. Seppänen [EMAIL PROTECTED] writes: Another data point: a recent svn version of matplotlib segfaults on my OS X system, and ktrace suggests it occurs while it is reading CharcoalCY.dfont. Looks like a freetype bug: the following code segfaults when linked against libfreetype.6.3.10

Re: [Matplotlib-users] matplotlib svn bug: Found an unknown keyword in AFM header...?

2007-08-21 Thread Jouni K . Seppänen
of two things: first, for some reason the afmfiles list contains non-AFM files, which is probably a bug; second, the AFM parser doesn't quit when faced with a malformed file. I committed a sanity check (diff attached) in afm.py to fix the second problem, but the first one remains. -- Jouni K

Re: [Matplotlib-users] matplotlib svn bug: Found an unknown keyword in AFM header...?

2007-08-21 Thread Jouni K . Seppänen
as to the reasoning behind the code. Somebody else might know better? -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events

Re: [Matplotlib-users] Bar graph color

2007-08-23 Thread Jouni K . Seppänen
the pylab commands getp and setp. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files

Re: [Matplotlib-users] PS and imshow

2007-08-24 Thread Jouni K . Seppänen
resolutions: #!/usr/bin/python from pylab import * foo = rand(10,10) imshow(foo) savefig('foo10.ps', dpi=10) savefig('foo100.ps', dpi=100) Perhaps the original poster could show a bit of code where the scaling fails? (I'm not sure if figimage is doing the right thing, though...) -- Jouni K

Re: [Matplotlib-users] Error TclError: no display name and no $DISPLAY environment variable

2007-08-24 Thread Jouni K . Seppänen
way to make this work is to replace import pylab by the following lines: import matplotlib matplotlib.use('Agg') import pylab See also: examples/webapp_demo.py. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email

[Matplotlib-users] Using the object-oriented interface (was: Error TclError: no display name and no $DISPLAY environment variable)

2007-08-26 Thread Jouni K . Seppänen
: http://matplotlib.sourceforge.net/leftwich_tut.txt http://matplotlib.sourceforge.net/classdocs.html Also examples/webapp_demo.py uses the object-oriented interface. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] PS and imshow

2007-08-30 Thread Jouni K . Seppänen
Petr Danecek [EMAIL PROTECTED] writes: On Fri, 2007-08-24 at 20:03, Jouni K. Seppänen wrote: savefig('foo10.ps', dpi=10) savefig('foo100.ps', dpi=100) In fact, the dpi option does change the resulting PS file, but the quality is still very poor - see the example http

Re: [Matplotlib-users] dateplot problem

2007-09-01 Thread Jouni K . Seppänen
Inkscape or Visio: http://article.gmane.org/gmane.comp.python.matplotlib.general/9241 http://article.gmane.org/gmane.comp.python.matplotlib.general/9250 -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email

Re: [Matplotlib-users] inverted x-axis

2007-09-03 Thread Jouni K . Seppänen
limit before the smaller one. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration

Re: [Matplotlib-users] imshow : text.py broken?

2007-09-04 Thread Jouni K . Seppänen
to report the dimensions (height, depth, and width) of a box with \showbox: http://uucode.com/blog/2006/02/26/showbox-in-latex/ -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Splunk Inc. Still

Re: [Matplotlib-users] combine eps files into a ps file ?

2007-09-12 Thread Jouni K . Seppänen
thing? No, at least not currently. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt

Re: [Matplotlib-users] Mac fonts do not display in plot

2007-09-12 Thread Jouni K . Seppänen
/HelveticaBold.ttf',size=14) In [22]: text(.1,.1,'this is bold',fontproperties=fp) -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005

Re: [Matplotlib-users] bar graph and legend

2007-09-14 Thread Jouni K . Seppänen
(_, ('foo',), numpoints=1) Out[7]: matplotlib.legend.Legend instance at 0x16cf9bc0 -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005

Re: [Matplotlib-users] eliminating end labels on axes

2007-09-14 Thread Jouni K . Seppänen
) -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [Matplotlib-users] hatching background

2007-09-14 Thread Jouni K . Seppänen
. eps and pdf.) -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [Matplotlib-users] Drawing filled circles (discs)

2007-09-15 Thread Jouni K . Seppänen
, matplotlib.cm.jet, pylab.rand(20), pylab.rand(20), 0.1*pylab.rand(20), pylab.rand(20)) ax.axis('equal') pylab.show() Implementing a CircleCollection as a subclass of PatchCollection would probably lead to a faster solution, but perhaps the code above is enough for simple needs. -- Jouni K. Seppänen

Re: [Matplotlib-users] plot different columns

2007-09-16 Thread Jouni K . Seppänen
() ax=fig.add_subplot(111) matrix = npy.random.rand(d,d) matrix[:,0] = npy.linspace(0, 1, num=d) myplot(ax, matrix, '-', colors[d-2]) pylab.show() -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net

Re: [Matplotlib-users] Change the line width of a legend

2007-09-18 Thread Jouni K . Seppänen
about it. Does setting the line width to zero do what you want? -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http

Re: [Matplotlib-users] Drawing filled circles (discs)

2007-09-19 Thread Jouni K . Seppänen
, colors): for x1,y1,r,c in zip(x, y, radii, colormap(colors)): ax.add_patch(Circle((x1,y1), r, fc=c)) cax, _ = make_axes(ax) ColorbarBase(cax, cmap=colormap) A better solution is probably to implement a CircleCollection similarly to the other collections. -- Jouni K. Seppänen

Re: [Matplotlib-users] latex labels on saved plots

2007-09-20 Thread Jouni K . Seppänen
distiller). Gmane mangles the URL (to protect email addresses) so I can't read the message you cite, but using the XPDF distiller means setting ps.usedistiller to xpdf in your matplotlibrc file. You will need to have ps2pdf (from ghostscript) and pdftops (from xpdf or poppler) installed. -- Jouni K

Re: [Matplotlib-users] plot different columns

2007-09-20 Thread Jouni K . Seppänen
Fabian Braennstroem [EMAIL PROTECTED] writes: Jouni K. Seppänen schrieb am 09/16/2007 05:51 PM: def myplot(ax, matrix, linestyle, color): [...] Thanks for your help! add_line seems to be the right function... I am not sure yet, if I need your function call, but I will check it!? Oh, I

Re: [Matplotlib-users] Drawing filled circles (discs)

2007-09-20 Thread Jouni K . Seppänen
, don't worry about this. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [Matplotlib-users] Starting troubles with matplotlib.

2007-09-20 Thread Jouni K . Seppänen
-to-pixel corrections in axis lines... -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt

Re: [Matplotlib-users] Starting troubles with matplotlib.

2007-09-20 Thread Jouni K . Seppänen
Jouni K. Seppänen [EMAIL PROTECTED] writes: Shishir Ramam [EMAIL PROTECTED] writes: What I cannot understand is why the vertical bars don't align to the y-axis 0 point. Also if you don't draw some of the green lines, the red ones extend beyond the x-axis. I wonder if this is an artifact

Re: [Matplotlib-users] Rv: three-d contour plot(intensity or arrow plot)

2007-09-23 Thread Jouni K . Seppänen
-8f49c45f696b5833d161aab95c22e5d495658a44 -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [Matplotlib-users] contour or intensity plot.

2007-09-23 Thread Jouni K . Seppänen
yadin Bocuma Rivas [EMAIL PROTECTED] writes: i want to generate a contour plot [...] an example will be very helpfull Please see examples/contour_demo.py in the matplotlib distribution and http://matplotlib.sourceforge.net/matplotlib.pylab.html#-contour -- Jouni K. Seppänen http://www.iki.fi

Re: [Matplotlib-users] Non-interactive use always tries to load wx

2007-10-02 Thread Jouni K . Seppänen
importing pylab reads your matplotlibrc file and does all sorts of setup: import matplotlib matplotlib.use('agg') import pylab -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all

Re: [Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-25 Thread Jouni K Seppänen
Rich Shepard [EMAIL PROTECTED] writes: x,y = [(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)] ValueError: too many values to unpack You are looking for the classic unzip trick: x,y = zip(*[(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)]) -- Jouni

Re: [Matplotlib-users] How to get current value of xlim/ylim?

2008-02-11 Thread Jouni K . Seppänen
Slackenerny [EMAIL PROTECTED] writes: graph = f.add_subplot(...) I could help myself with graph.get_xlim() So, how could I have helped myself, without annoying you? ;) The commands getp(graph) and setp(graph) might have helped. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] needed grp2idx

2008-02-11 Thread Jouni K . Seppänen
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 sponsored by: Microsoft Defy all

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

2008-03-25 Thread Jouni K . Seppänen
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) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

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

2008-03-25 Thread Jouni K . Seppänen
, 1194639447) Stat is a clever way of finding the real identity of the file on Unix-like systems. On Windows we clearly need something else... -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored

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

2008-03-25 Thread Jouni K . Seppänen
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 - This SF.net email is sponsored by: Microsoft

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

2008-04-24 Thread Jouni K . Seppänen
, 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. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] markeredgewidth and pdf

2008-04-26 Thread Jouni K . Seppänen
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 Don't miss this year's

Re: [Matplotlib-users] Type 3 fonts

2008-05-08 Thread Jouni K . Seppänen
. 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 - This SF.net email is sponsored

Re: [Matplotlib-users] Type 3 fonts

2008-05-08 Thread Jouni K . Seppänen
. 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 - This SF.net email is sponsored

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

2008-05-12 Thread Jouni K . Seppänen
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 email is sponsored by the 2008 JavaOne

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://www.iki.fi/jks

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

2008-05-22 Thread Jouni K . Seppänen
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 challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go

Re: [Matplotlib-users] changing ticklabels color

2008-05-22 Thread Jouni K . Seppänen
') -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [Matplotlib-users] ugly arrow with xpdf

2008-06-02 Thread Jouni K . Seppänen
? 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änen http://www.iki.fi/jks

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 win great

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

2008-10-05 Thread Jouni K . Seppänen
the trunk or the maintenance branch from Subversion, or apply the following patch and try again? -- Jouni K. Seppänen http://www.iki.fi/jks Index: lib/matplotlib/afm.py === --- lib/matplotlib/afm.py (revision 6149) +++ lib/matplotlib

  1   2   3   >