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

2007-02-18 Thread Neal Becker
I have never used matlab, but a lot of my colleagues do. Can anyone give me some good references that I could show them to explain the advantages of python over matlab? - Take Surveys. Earn Cash. Influence the Future of IT

[Matplotlib-users] Plot a complex sequence (newb)

2008-02-06 Thread Neal Becker
Newb here. I can plot a seq of float with: pylab.plot (s) pylab.show() But if s is complex, say numpy.array(complex), it doesn't do what I want. I think it's just showing the real part? I want to get 2 line graphs, one real one imag.

Re: [Matplotlib-users] plotting from xemacs always 1 step behind

2008-02-12 Thread Neal Becker
Phil Austin wrote: John Hunter wrote: Well, the problem is that GTK, WX and Qt require threading support to use them properly interactively. ipython has special modes for these to run the GUI mainloop in the separate thread. tk is special in this regard, in that it runs from a

[Matplotlib-users] exceptions from easy_install matplotlib

2008-02-12 Thread Neal Becker
Should I be worried about these? Installed /usr/lib/python2.5/site-packages/matplotlib-0.91.2-py2.5-linux-x86_64.egg Processing dependencies for matplotlib Finished processing dependencies for matplotlib Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in bound

[Matplotlib-users] plotting from xemacs always 1 step behind

2008-02-12 Thread Neal Becker
This is a bit wierd. If running from xemacs, it seems interactive plotting is always 1 step behind. For example, I do: M-x py-shell This brings up a *Python* buffer in Comint mode running Ipython. In [1]: from pylab import * In [2]: plot ([1,2,3]) Out[2]: [matplotlib.lines.Line2D instance at

[Matplotlib-users] automatically choose line markers/styles?

2008-02-14 Thread Neal Becker
Can matplotlib automatically choose line styles and/or markers for a group of plots? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.

Re: [Matplotlib-users] automatically choose line markers/styles?

2008-02-14 Thread Neal Becker
Alan G Isaac wrote: On Thu, 14 Feb 2008, Neal Becker apparently wrote: Can matplotlib automatically choose line styles and/or markers for a group of plots? http://matplotlib.sourceforge.net/matplotlibrc Although I prefer to pass in a dict of keyword arguments. Not sure what you're

Re: [Matplotlib-users] plotting from xemacs always 1 step behind

2008-02-18 Thread Neal Becker
On Tuesday 12 February 2008, John Hunter wrote: On Feb 12, 2008 6:49 AM, Neal Becker [EMAIL PROTECTED] wrote: This is a bit wierd. If running from xemacs, it seems interactive plotting is always 1 step behind. I assume you have set 'interactive : True' in your rc file? What backend

Re: [Matplotlib-users] automatically choose line markers/styles?

2008-02-19 Thread Neal Becker
Alan G Isaac wrote: On Thu, 14 Feb 2008, Neal Becker apparently wrote: Can I get nice default line styles and markers, automatically set up with matching legend? Automatically chosen? I don't want to have to go through and manually choose each marker and line style. Well, you have

[Matplotlib-users] [newb] axes hold question

2008-05-09 Thread Neal Becker
I have sets of data to plot on semilogy. I want the minimum y axis set to some value, say 10e-10. I do: axis([0,1,1e-10,1]) hold(True) for (whatever): semilogy (x, y) grid() legend() show() But the data is not clipped in y from [1e-10..1] as I wanted. What's wrong here?

[Matplotlib-users] [newb] batch processing

2008-05-12 Thread Neal Becker
To produce a batch of pdfs, I'm using: close () figure (1, figsize=(11,8)) ... savefig (open (whatever, 'w')) Works, but causes my display to flash, I think each time either close() or figure() is called (not sure which). Any better way?

[Matplotlib-users] plot problem

2009-01-16 Thread Neal Becker
pylab.plot (xaxis, log10 (the_sum)*10) where xaxis is numpy array, and log10(the_sum)*10 is my own class that is a valid python sequence (it is a c++ wrapper around boost::ublas), gives: File /usr/lib/python2.5/site-packages/matplotlib-0.98.5.2-py2.5-linux- x86_64.egg/matplotlib/pyplot.py,

Re: [Matplotlib-users] plot problem

2009-01-16 Thread Neal Becker
On Friday 16 January 2009, Eric Firing wrote: Neal Becker wrote: pylab.plot (xaxis, log10 (the_sum)*10) where xaxis is numpy array, and log10(the_sum)*10 is my own class that is a valid python sequence (it is a c++ wrapper around boost::ublas), gives: File /usr/lib/python2.5/site

[Matplotlib-users] Howto get horiz/vert grid

2009-05-29 Thread Neal Becker
from pylab import semilogy, show, grid grid() semilogy (result[0]) This gave me just a vertical grid. What do I do to get both horiz and vert grids? -- Register Now for Creativity and Technology (CaT), June 3rd,

[Matplotlib-users] annotate x-axis

2009-12-11 Thread Neal Becker
How should I put some text marking a position on the x-axis? -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev

[Matplotlib-users] automatically choose different line markers

2010-11-05 Thread Neal Becker
How can I automatically cycle through distinctive line markers? I want a semilog plot, composed of a number of lines. Each line should have a different color and marker. Cycling through the colors is automatic, but not the markers. BTW, shouldn't this behavior be the default? I would just

[Matplotlib-users] semilogy

2011-01-05 Thread Neal Becker
I want to plot semilogy with major and minor grid. I tried: plt.grid(which='both') But 2 problems: 1) For semilogy, most of my viewers will expect to see 10 minor ticks/major tick. I got 5. How do I change it? 2) I'd like the major ticks to be solid lines, and minor ticks to be dashed. I

Re: [Matplotlib-users] semilogy

2011-01-06 Thread Neal Becker
Paul Ivanov wrote: Neal Becker, on 2011-01-05 08:19, wrote: I want to plot semilogy with major and minor grid. I tried: plt.grid(which='both') But 2 problems: 1) For semilogy, most of my viewers will expect to see 10 minor ticks/major tick. I got 5. How do I change it? Hi Neal

[Matplotlib-users] Why no STIX fonts?

2011-01-14 Thread Neal Becker
I have several machines running fedora f14. 2 of them produce plots fine with STIX, but 1 doesn't, but gives: /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXSizeOneSym'] not found. Falling back to Bitstream Vera Sans

Re: [Matplotlib-users] Why no STIX fonts?

2011-01-14 Thread Neal Becker
Seems that deleting fontList.cache did it. Michael Droettboom wrote: You can try deleting matplotlib's font cache in ~/.matplotlib/fontList.cache. If that doesn't work, set the rcParam verbose.level to debug-annoying and send us the output... Mike On 01/14/2011 08:10 AM, Neal Becker

[Matplotlib-users] No stix fonts?

2011-03-17 Thread Neal Becker
/usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXSizeOneSym'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1242:

[Matplotlib-users] some explanatory text with legend

2011-03-18 Thread Neal Becker
My legend is going to have a series of entries that look like: u=2,p=3 u=1,p=4 ... I want to add some (short) text that explains what u and p are. I'm thinking to get the coordinates of the legend box so I can then annotate? How would I get the coordinates of the legend box? Or is there some

Re: [Matplotlib-users] some explanatory text with legend

2011-03-24 Thread Neal Becker
of leg is known when ann gets drawn See here for some more details. http://matplotlib.sourceforge.net/users/annotations_guide.html#using-complex- coordinate-with-annotation Regards, -JJ On Fri, Mar 18, 2011 at 8:31 PM, Neal Becker ndbeck...@gmail.com wrote: My legend is going to have

[Matplotlib-users] scaling multiple plots same axis?

2011-04-13 Thread Neal Becker
Suppose I'm generating multiple seperate plots. I'd like them auto-scaled, but in the end want the same axis (so they can be visually compared). Any suggestions? (semilogy, if that matters). -- Forrester Wave Report

[Matplotlib-users] multiple graphs on same scale

2011-05-02 Thread Neal Becker
I asked this a while back, but never explained myself clearly. I'm using pdfpages to plot multiple graphs on multiple pages. I want the graphs to come out on the same scales. Would it be reasonable to try to autoscale them and yet come out on the same scale? Maybe would be easier to

[Matplotlib-users] adding some text

2011-05-17 Thread Neal Becker
I have several line graphs on a single plot. I'd like to indicate what is the mean of each of them (they are showing cumulative distributions). Each is a different color. I tried putting 'mean=xxx' into the legend. That works, but I think it's confusing. The legend normally displays

Re: [Matplotlib-users] latex just produces gibberish

2011-05-18 Thread Neal Becker
Darren Dale wrote: On Tue, May 17, 2011 at 2:05 PM, Neal Becker ndbeck...@gmail.com wrote: I have an old fedora 11 system. When I try to use latex math (e.g., $\mu=2$), it gives no error, but seems to produce gibberish (just ordinary ascii chars) in my pdf output. Any ideas how to debug

Re: [Matplotlib-users] latex just produces gibberish

2011-05-18 Thread Neal Becker
Michael Droettboom wrote: Are you setting text.usetex to True, or using matplotlib's built-in mathtext rendering? Can you attach an image? I've seen enough of these failure cases that I can often guess by looking at it ;) Mike On 05/18/2011 09:21 AM, Neal Becker wrote: Darren Dale

[Matplotlib-users] show density in scatter

2011-05-18 Thread Neal Becker
Using scatter, it seems less probably (numerous) points show just as much as more probable points. Can anyone suggest a good way to emphasize the more probable points? I was thinking maybe the easy way is just scale down the markers. Drawback may be too many points plotted. Colors would be

Re: [Matplotlib-users] show density in scatter

2011-05-18 Thread Neal Becker
Eric Firing wrote: On 05/18/2011 09:01 AM, Neal Becker wrote: Using scatter, it seems less probably (numerous) points show just as much as more probable points. Can anyone suggest a good way to emphasize the more probable points? This is what hexbin is for, although it takes

[Matplotlib-users] Font family ['cmb10'] not found

2011-08-15 Thread Neal Becker
Fedora f15. What am I missing that causes this? /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmb10'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext]))

Re: [Matplotlib-users] Font family ['cmb10'] not found

2011-08-15 Thread Neal Becker
Looks like this is fixed by: mathtext.fontset: stix Neal Becker wrote: Fedora f15. What am I missing that causes this? /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmb10'] not found. Falling back to Bitstream Vera Sans

[Matplotlib-users] update graph without blocking

2011-08-23 Thread Neal Becker
Running from command line (not ipython), is there some way to add a plot and update display without blocking? I have an algorithm that should iteratively converge. I'd like to draw the result (a plot) after N iterations, continue computing, then draw after 2N, etc. Retaining the previous

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-09-04 Thread Neal Becker
surfcast23 wrote: I am fairly new to programing and have a question regarding matplotlib. I wrote a python script that reads in data from the outfile of another program then prints out the data from one column. f = open( 'myfile.txt','r') for line in f: if line != ' ': line =

[Matplotlib-users] 2 x-axes

2011-09-09 Thread Neal Becker
I have a semilog plot. I'd like to add a second x axis (maybe below the existing one, or else maybe on top of graph). This second x axis is simply describing the same existing data, in different units. For example imagine a plot of x - time in seconds y - velocity x2 - time in minutes

Re: [Matplotlib-users] 2 x-axes

2011-09-09 Thread Neal Becker
Neal Becker wrote: I have a semilog plot. I'd like to add a second x axis (maybe below the existing one, or else maybe on top of graph). This second x axis is simply describing the same existing data, in different units. For example imagine a plot of x - time in seconds y - velocity

Re: [Matplotlib-users] 2 x-axes

2011-09-11 Thread Neal Becker
Gökhan Sever wrote: Hi, The code below should create a properly placed 2nd x-axis. You might need to adjust the placement of the figure canvas to match into the window. import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.parasite_axes import SubplotHost fig

Re: [Matplotlib-users] 2 x-axes

2011-09-11 Thread Neal Becker
Jae-Joon Lee wrote: On Sun, Sep 11, 2011 at 10:16 PM, Neal Becker ndbeck...@gmail.com wrote: Yes, that's very helpful. Just one thing. How would I get a bit more bottom margin on the main figure to leave more room for the extra axis? I'm using this as an example. I experimented

Re: [Matplotlib-users] 2 x-axes

2011-09-12 Thread Neal Becker
Actually, though, I didn't want to plot 2 different sets of data as in that example, I want 1 set of data plotted with 2 different x-axis (different units). Any suggestion on modifying this example to accomplish this? import numpy as np import matplotlib.pyplot as plt from

Re: [Matplotlib-users] 2 x-axes

2011-09-12 Thread Neal Becker
Neal Becker wrote: Actually, though, I didn't want to plot 2 different sets of data as in that example, I want 1 set of data plotted with 2 different x-axis (different units). Any suggestion on modifying this example to accomplish this? import numpy as np import matplotlib.pyplot as plt

[Matplotlib-users] how would you do this (animated bargraph)

2011-09-30 Thread Neal Becker
I just put together an animated bargraph to show results from a realtime process. I used this as an example: http://matplotlib.sourceforge.net/examples/animation/animation_blit_qt4.html The tricky part for me was that in the original design, there was a realtime process running. I have to

Re: [Matplotlib-users] how would you do this (animated bargraph) (Neal Becker)

2011-09-30 Thread Neal Becker
David Hoese wrote: Neal, I do something similar to this where data that I'm plotting in a 2D line plot comes from a UDP socket and some memory mapped files. To accomplish the live updating I have a mix of your #2 and #3. I have a main GUI thread that displays the plots, then I have a

[Matplotlib-users] X Error since upgrade to 1.1.0

2011-10-13 Thread Neal Becker
Using interactively (via emacs/ipython), on closing a plot window I see: X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x5802e1b -- All the data continuously

Re: [Matplotlib-users] X Error since upgrade to 1.1.0

2011-10-13 Thread Neal Becker
linux fedora 15 x86_64 backend : Qt4Agg Now it's gone away, after killing the *Python* buffer and restarting the python process. If it comes back I'll try to get more info. John Hunter wrote: On Thu, Oct 13, 2011 at 8:03 AM, Neal Becker ndbeck...@gmail.com wrote: Using interactively (via

[Matplotlib-users] problem with annotate

2011-12-02 Thread Neal Becker
Using horizontalalignment='right', it seems that if a point lies on the right edge of the plot, the annotation does not appear, even though (since the text should be right aligned), the text would have been on the plot and be visible. Any workaround?

Re: [Matplotlib-users] problem with annotate

2011-12-08 Thread Neal Becker
Regards, -JJ On Fri, Dec 2, 2011 at 10:19 PM, Neal Becker ndbeck...@gmail.com wrote: Using horizontalalignment='right', it seems that if a point lies on the right edge of the plot, the annotation does not appear, even though (since the text should be right aligned), the text would

[Matplotlib-users] Add some explanatory text to the legend

2012-01-25 Thread Neal Becker
I have a legend that is going to have some abbreviations to compactly indicate the properties of different lines in a graph. I'd like to add a little 'key' to explain what the notation means. Any suggestion? -- Keep

Re: [Matplotlib-users] Add some explanatory text to the legend

2012-01-25 Thread Neal Becker
Ethan Swint wrote: On 1/25/2012 1:32 PM, Neal Becker wrote: I have a legend that is going to have some abbreviations to compactly indicate the properties of different lines in a graph. I'd like to add a little 'key' to explain what the notation means. Any suggestion? I was thinking

[Matplotlib-users] pdf file output name too restrictive?

2012-03-12 Thread Neal Becker
Using this code: self.pdf = PdfPages('%s.%s.pdf' % (name, str(date.today( Trying to output a pdf with the name results.abs_aci=[10.0, nan, 10.0].rate=['2/3', '4/5', '2/3'].2012-03-12.pdf produces this error IOError: [Errno 2] No such file or directory: results.abs_aci=[10.0, nan,

[Matplotlib-users] resize a plot to make room

2012-03-12 Thread Neal Becker
I have a figure with a semilogy plot. I need to make more room on the bottom to add a bunch of figtext, which is 4 lines of text. With the defaults, the text overprints the x-axis. What is a suggested way to fix this? (Ideally, mpl would calculate the appropriate sizes for me so things

[Matplotlib-users] howto get minor ticks?

2012-05-15 Thread Neal Becker
In the following code snippet (not a complete example), I get the dashed lines for the minor ticks on the y (log) axis, but on the x axis, I only got the major ticks lines. How do I get minor lines to show up? (Previously, I tried without the MultipleLocator and set_minor_locator, but still

[Matplotlib-users] Exception RuntimeError: 'sys.meta_path must be a list of import hooks

2012-06-12 Thread Neal Becker
Any ideas what this is about? No traceback, just this message: Exception RuntimeError: 'sys.meta_path must be a list of import hooks' in bound method plot.__del__ of __main__.plot object at 0x2cf5c10 ignored -- Live

Re: [Matplotlib-users] Exception RuntimeError: 'sys.meta_path must be a list of import hooks

2012-06-12 Thread Neal Becker
Neal Becker wrote: Any ideas what this is about? No traceback, just this message: Exception RuntimeError: 'sys.meta_path must be a list of import hooks' in bound method plot.__del__ of __main__.plot object at 0x2cf5c10 ignored Maybe I found it. I had an object managing my plot, which

[Matplotlib-users] legend(loc='best') not so great

2012-09-11 Thread Neal Becker
I tried a scatterplot with legend(loc='best'), but the legend appears on the upper right, covering a data point. There is nothing anywhere in the graph on the upper left, which is where 'best' should go. -- Live

Re: [Matplotlib-users] legend(loc='best') not so great

2012-09-11 Thread Neal Becker
OK, I've attached my sanitized example Benjamin Root wrote: On Tue, Sep 11, 2012 at 9:29 AM, Neal Becker ndbeck...@gmail.com wrote: I tried a scatterplot with legend(loc='best'), but the legend appears on the upper right, covering a data point. There is nothing anywhere in the graph

[Matplotlib-users] automating-xkcd-diagrams-transforming-serious-to-funny

2012-10-05 Thread Neal Becker
http://blog.wolfram.com/2012/10/05/automating-xkcd-diagrams-transforming- serious-to-funny/ I wonder if mpl has anything along these lines? -- Don't let slow site performance ruin your business. Deploy New Relic APM

Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-19 Thread Neal Becker
Mathew Topper wrote: Hi, I'm interested to know why the pip package manager is not more widely supported for installation of python packages like matplotlib? Matplotlib seems to be particularly slowly updated in the Fedora repositories, for example, so I often find that a source

Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-20 Thread Neal Becker
. Mat On 19/11/12 12:59, Neal Becker wrote: Mathew Topper wrote: Hi, I'm interested to know why the pip package manager is not more widely supported for installation of python packages like matplotlib? Matplotlib seems to be particularly slowly updated in the Fedora repositories

Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-20 Thread Neal Becker
like the current Fedora TexLive2012 testing repository - but obviously this is no small job. python setup.py install doesn't have similar issues, I take it? Mat On 20/11/12 11:40, Neal Becker wrote: The problem is that pip packages something as a dir where easy_install packages as a file

[Matplotlib-users] 3d performance question

2012-12-14 Thread Neal Becker
I'm using fedora (17) linux. I notice on complicated 3d plot, interactive performance can get sluggish. I'm using nouveau driver now, but wondering if installing nvidia driver will improve mpl 3d performance? Does mpl use opengl?

[Matplotlib-users] xelatex with pdf multipage

2013-02-21 Thread Neal Becker
Objective: produce multi-page pdfs using xelatex so I can have advanced latex and stix fonts (using xits package) I've used pdf multipage with the recipe: import matplotlib as mpl mpl.use ('pdf') import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages pdf =

Re: [Matplotlib-users] xelatex with pdf multipage

2013-02-22 Thread Neal Becker
Neal Becker wrote: Objective: produce multi-page pdfs using xelatex so I can have advanced latex and stix fonts (using xits package) I've used pdf multipage with the recipe: import matplotlib as mpl mpl.use ('pdf') import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf

[Matplotlib-users] real time plotting

2013-03-11 Thread Neal Becker
I want to update a plot in real time. I did some goog search, and saw various answers. Trouble is, they aren't working. Here's a typical example: import matplotlib.pyplot as plt import numpy as np fig=plt.figure() plt.axis([0,1000,0,1]) i=0 x=list() y=list() while i 1000:

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Neal Becker
: temp_y=np.random.random() x.append(i) y.append(temp_y) plt.scatter(i,temp_y) i+=1 plt.draw() On Mon, Mar 11, 2013 at 9:55 AM, Francesco Montesano franz.berges...@gmail.com wrote: Dear Neal, 2013/3/11 Neal Becker ndbeck...@gmail.com I want to update a plot in real time. I

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Neal Becker
mpl is 1.2.0 Fedora linux On Mon, Mar 11, 2013 at 9:57 AM, Neal Becker ndbeck...@gmail.com wrote: Tried with/and without plt.ion(), no difference. Nothing is drawn. When I kill it with C-c, briefly a window is flashed. import matplotlib as mpl import matplotlib.pyplot as plt plt.ion

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Neal Becker
I added fig.canvas.show(). It still does nothing. If I add mpl.use ('GTK'), now it seems to be doing realtime plotting. import matplotlib as mpl import matplotlib.pyplot as plt plt.ion() import numpy as np fig=plt.figure() plt.axis([0,1000,0,1]) i=0 x=list() y=list() fig.canvas.show() while i

[Matplotlib-users] another failed attempt (realtime)

2013-03-11 Thread Neal Becker
According to other examples I see on the web, use of 'relim' and 'autoscale_view' should result in rescaling and drawing new axes. Doesn't. Unless I explicity call ax.axis ([...]) I don't get any rescaling. Here's an example: import matplotlib as mpl mpl.use ('GTK') import matplotlib.pyplot

Re: [Matplotlib-users] another failed attempt (realtime)

2013-03-11 Thread Neal Becker
. -Sterling On Mar 11, 2013, at 10:43AM, Neal Becker wrote: According to other examples I see on the web, use of 'relim' and 'autoscale_view' should result in rescaling and drawing new axes. Doesn't. Unless I explicity call ax.axis ([...]) I don't get any rescaling. Here's an example

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Neal Becker
what you come up with, I'm interested. -Dave P.S. Why use a while loop? You can do the same thing with: for i in range(1000): # Do stuff On 3/11/13 10:34 AM, Neal Becker wrote: I added fig.canvas.show(). It still does nothing. If I add mpl.use ('GTK'), now it seems

Re: [Matplotlib-users] native latex rendering:

2013-04-02 Thread Neal Becker
Maybe look into pgf. It's slow, but looks good. http://matplotlib.org/users/pgf.html -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for

[Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
It appears that latex doesn't work with xkcd? I put for example: self.ax.set_xlabel ('$E_s/N_0$') Which go rendered with the '$' signs and not as latex And my vertical axis was labeled as: $\mathdefault{10^{3}}$ ...

Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
mode is not compatible with text.usetex = True| Mike On 10/18/2013 07:24 AM, Neal Becker wrote: It appears that latex doesn't work with xkcd? I put for example: self.ax.set_xlabel ('$E_s/N_0 ) Which go rendered with the ' signs and not as latex And my vertical axis

Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
) RuntimeError: xkcd mode is not compatible with text.usetex = True| Mike On 10/18/2013 07:24 AM, Neal Becker wrote: It appears that latex doesn't work with xkcd? I put for example: self.ax.set_xlabel ('$E_s/N_0 ) Which go rendered with the ' signs and not as latex

Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
Michael Droettboom wrote: On 10/18/2013 08:20 AM, Neal Becker wrote: Michael Droettboom wrote: The built-in mathtext support does. (I can put xkcd() at the top of the mathtext_demo.py example and all is well). It does not work when |text.usetex| is True (when using external TeX

Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
Neal Becker wrote: This example shows the error on my platform - the xlabel is not rendered with tex but instead the '$' are printed: import numpy as np import matplotlib.pyplot as plt plt.xkcd() fig = fig = plt.figure() ax = fig.add_subplot(111) plt.plot (np.arange (10), 2*np.arange

Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
example works just fine for me. Mike On 10/18/2013 08:40 AM, Neal Becker wrote: Neal Becker wrote: This example shows the error on my platform - the xlabel is not rendered with tex but instead the '$' are printed: import numpy as np import matplotlib.pyplot as plt plt.xkcd

[Matplotlib-users] multi colored text

2013-10-30 Thread Neal Becker
I have a blue line plot and a green line plot. I'd like to add some figtext at the bottom, and I'd like the text colors to match the plot colors. So I'd have some text in blue and some in green. figtext only allows one color I could use 2 figtext, but then I have to manually find coordinate

[Matplotlib-users] nicely formatted exponential in title

2013-11-20 Thread Neal Becker
I tried: plt.title (r'$\omega=%s$' % omega), where omega=-1e-5. The title says: omega=-1e-05 with the 'e' in italics, and the whole thing generally ugly. What I'd like to see is what TeX would do for $1 \times 10^{5}$. I know mpl already can nicely format numbers for axis. Can I somehow use

[Matplotlib-users] hg-git + hg2.8?

2013-11-26 Thread Neal Becker
Didn't seem to work for me. I tried pip install --user hg-git hg clone https://github.com/scipy/scipy abort: HTTP Error 406: Not Acceptable So how about using hg-git just locally? hg clone scipy scipy.hg ** Unknown exception encountered with possibly-broken third-party extension hg- git **

Re: [Matplotlib-users] hg-git + hg2.8?

2013-11-26 Thread Neal Becker
Sorry, this was posted to the wrong group Neal Becker wrote: Didn't seem to work for me. I tried pip install --user hg-git hg clone https://github.com/scipy/scipy abort: HTTP Error 406: Not Acceptable So how about using hg-git just locally? hg clone scipy scipy.hg ** Unknown

[Matplotlib-users] multipage pdf + pgf?

2013-12-07 Thread Neal Becker
I'm using import matplotlib as mpl mpl.use ('pdf') from matplotlib.backends.backend_pdf import PdfPages ... self.pdf = PdfPages(file_name) ... self.pdf.savefig (self.fig) plt.close() ... pdf.close() This works fine, but now I want to try pgf. If I add: from matplotlib.backends.backend_pgf

[Matplotlib-users] hexbin runtime warnings

2013-12-27 Thread Neal Becker
Any idea what could cause hexbin to issue runtime warnings and then draw a blank figure? /home/nbecker/.local/lib/python3.3/site-packages/matplotlib/axes.py:6524: RuntimeWarning: invalid value encountered in true_divide x = (x - xmin) / sx

[Matplotlib-users] don't understand interactive mode

2014-01-08 Thread Neal Becker
I am trying to update a figure in a loop: import matplotlib.pyplot as plt plt.ion() plt.figure (1) def c2r (z): return z.real, z.imag plt.hexbin (*c2r (run_ofdm (xconst_pred)[:opt.used]), mincnt=1) plt.draw() But no figure appears on the screen. What am I

[Matplotlib-users] twinx vs. subplothost

2014-03-06 Thread Neal Becker
I've seen examples for 2 axis using twinx, and examples using subplothost. Any reason to choose one over the other? -- Subversion Kills Productivity. Get off Subversion Make the Move to Perforce. With Perforce, you get

[Matplotlib-users] Which api to learn?

2014-04-30 Thread Neal Becker
I've never used matlab (and hope never to have to). But I've been using pyplot api for mpl for quite a while. Is there any good reason to move to the native mpl api and drop pyplot? I ask because as I understand, pyplot is intended as a matlab workalike, and since I never learned matlab I

Re: [Matplotlib-users] Which api to learn?

2014-04-30 Thread Neal Becker
Paul Hobson wrote: The only pyplot function I let myself use is plt.subplots() to quickly create the Figure and Axes objects. From that point on, I operate on those objects directly. Frankly, it reads almost exactly like pyplot code, but it is a *lot* more clear what's going on. ...

[Matplotlib-users] basic pgf test fails

2014-05-06 Thread Neal Becker
I tried the simple example, but all examples I try choke on savefig ('blah.pdf') This is fedora20 linux, with pretty modern, complete texlive. I tried rm'ing tex-cache example.py # -*- coding: utf-8 -*- import matplotlib as mpl mpl.use(pgf) pgf_with_rc_fonts = {

Re: [Matplotlib-users] basic pgf test fails

2014-05-07 Thread Neal Becker
Neal Becker wrote: I tried the simple example, but all examples I try choke on savefig ('blah.pdf') This is fedora20 linux, with pretty modern, complete texlive. I tried rm'ing tex-cache example.py # -*- coding: utf-8 -*- import matplotlib as mpl mpl.use(pgf

Re: [Matplotlib-users] basic pgf test fails

2014-05-07 Thread Neal Becker
https://github.com/matplotlib/matplotlib/issues/3051 -- Is your legacy SCM system holding you back? Join Perforce May 7 to find out: #149; 3 signs your SCM is hindering your productivity #149; Requirements for releasing

Re: [Matplotlib-users] Upgrading matplotlib

2014-06-13 Thread Neal Becker
I use pip install --user whatever -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for

[Matplotlib-users] mpl-1.4 openblas

2014-08-27 Thread Neal Becker
Using pip (so default build), while building mpl-1.4 on fedora-20 linux, I noticed: openblas_info: libraries not found in ['/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/'] NOT AVAILABLE openblas is installed. Should I be concerned? -- -- Those who

[Matplotlib-users] violin plot

2014-08-27 Thread Neal Becker
I'm pleased to see violinplot added to mpl-1.4. One question. I might like to annotate with some statistic. Like boxplot can show quantiles. I might like to show either quantiles, or some other statistic (3 sigma) on my violinplot. After all, violinplot is advertised as an improved

Re: [Matplotlib-users] violin plot

2014-08-28 Thread Neal Becker
-08-27 12:15 GMT-03:00 Neal Becker ndbeck...@gmail.com: I'm pleased to see violinplot added to mpl-1.4. One question. I might like to annotate with some statistic. Like boxplot can show quantiles. I might like to show either quantiles, or some other statistic (3 sigma) on my violinplot

[Matplotlib-users] 2 overlaid plots with grid??

2014-10-21 Thread Neal Becker
I need to overlay 2 different plots. They will share an x-axis, but will have 2 different y axis with 2 different sets of units. I want one y-axis on left and one on right. But to make it harder, I want a grid. That means, there are either 2 different grids, which is ugly, or one plot has

Re: [Matplotlib-users] synchronize magnification of subplots?

2015-02-03 Thread Neal Becker
Paul Hobson wrote: I only have the notebook to mes around in, but the following works for me: %matplotlib nbagg import matplotlib.pyplot as plt fig, ax = plt.subplots(nrows=2, sharex=True, sharey=True) On Tue Feb 03 2015 at 4:07:26 PM Neal Becker ndbeck...@gmail.com wrote: I have 2

[Matplotlib-users] synchronize magnification of subplots?

2015-02-03 Thread Neal Becker
I have 2 subplots, 2 rows 1 col. They have the same x-axis. I'd like to be able to zoom in on both plots together. Using qt4agg, there is a zoom icon, but it seems to operated on each subplot separately. -- -- Those who don't understand recursion are doomed to repeat it

Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Neal Becker
I vote for D, although I like matlab's new default even better -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net

[Matplotlib-users] common text label on legend?

2015-06-10 Thread Neal Becker
Is there some way I can add a short text to the legend box? Rather than having label='foo=0' label='foo=1' ... I'd like to just put 'foo' say at the top of the legend box. Any thoughts? --

Re: [Matplotlib-users] TrueType font is missing table

2015-07-06 Thread Neal Becker
Neal Becker wrote: Using mpl 1.4.3 on Fedora 22, I'm trying to use stix font (so I can render the unicode lambda label on the x-axis). I have every fedora package related to 'stix', I think. It displays ok in qtagg4, but if I try to save to pdf if fails with RuntimeError

[Matplotlib-users] TrueType font is missing table

2015-07-06 Thread Neal Becker
Using mpl 1.4.3 on Fedora 22, I'm trying to use stix font (so I can render the unicode lambda label on the x-axis). I have every fedora package related to 'stix', I think. It displays ok in qtagg4, but if I try to save to pdf if fails with RuntimeError Traceback

  1   2   >