[Matplotlib-users] configure subplots feature request

2015-05-26 Thread Neal Becker
I'm plotting 1 figure with 8 subplots. They are 8 channels, and I want to see if there is some interaction. I wish that the 'configure subplots' menu allowed me to choose just some subplots to display (resizing when I turn some off), so I could get a better view at the selected subplots. -- T

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 https://lists.sourceforge.net/lists/li

[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? --

[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 (m

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 f

[Matplotlib-users] unicode trouble

2015-07-06 Thread Neal Becker
This code runs on python3, but on python2 I get: Traceback (most recent call last): File "per_vs_lambda.py", line 35, in ax.set_xlabel (' ') File "/usr/lib64/python2.7/site-packages/matplotlib/axes/_axes.py", line 179, in set_xlabel return self.xaxis.set_label_text(xlabel, fontdict, *

Re: [Matplotlib-users] unicode trouble

2015-07-06 Thread Neal Becker
Christian Alis wrote: > Have you tried making the string unicode? > > ax.set_xlabel (u' ') > > -- Oh, thanks. That works now on py2 and py3. --

[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] [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: > &g

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: > &g

[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, NYC.

[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 lik

[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 t

[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 (prop.get_fam

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

2011-01-14 Thread Neal Becker
tput... > > Mike > > On 01/14/2011 08:10 AM, Neal Becker wrote: >> 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: >&g

[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: UserWa

[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
gt; ) > > ann.set_zorder(leg.get_zorder()+0.1) > # the zorder of ann must be higher than leg so that the position of > leg is known when ann gets drawn > > See here for some more details. > > http://matplotlib.sourceforge.net/users/annotations_guide.html#usin

[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 just

[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 independ

[Matplotlib-users] latex just produces gibberish

2011-05-17 Thread Neal Becker
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? I found that a trivial 'hello_world.tex' could run through pdflatex OK. -

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 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. >> >>

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 0

[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 n

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

[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])) /usr/lib64/python2.7/site-packages/

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

[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 plot

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 > &g

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

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 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 thi

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 mpl_toolkits.axes_grid.

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 > impo

[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 writ

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

2011-09-30 Thread Neal Becker
ketNotifier, which sounds like it may be what I need if I want to hook into qt event loop to implement as single-thread, single-process. > -Dave > > On 9/30/11 9:10 AM, > matplotlib-users-requ...@lists.sourceforge.net > wrote: >> Message: 4 >> Date: Fri, 30 Sep 201

[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 generat

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 > wrote: >> Using interactiv

[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
lot_api.html#matplotlib.pyplot.annotate > > Regards, > > -JJ > > > On Fri, Dec 2, 2011 at 10:19 PM, Neal Becker > 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 (

[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 >>

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 J

[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 run

[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 > ignored

[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]: [] In [3]: xlabel('time') Out[3]: I

[Matplotlib-users] Read/write data from matlab?

2008-02-14 Thread Neal Becker
Is there a way for me to read/write data to/from matlab? I know nothing about matlab, but if I need a colleague to send me some data, what should I tell her about how to save it from matlab so that I can import it into matplotlib/numpy? ---

[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. http://clk.atdmt.com/MRT/go/vse0120

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

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 s

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 marke

[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, 10.0

[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 don't

[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 got

[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 > ignored -- Live Security Virtual Conference Exclusive live event will cover all

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 > > ignored > Maybe I found it. I had an object managing my plot, which had a __del__ wh

[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 Security

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 > wrote: > >> I tried a scatterplot with legend(loc='best'), but the legend >> appears on the upper right, covering a data point. There is nothin

[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 Depl

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 insta

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

2012-11-20 Thread Neal Becker
retty bleeding edge and I think I'm getting out of my depth as a > humble scientist. > > 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 &g

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

2012-11-20 Thread Neal Becker
> would make the most sense - much 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: > >

[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 = PdfPages

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') >

[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: temp_y=np.rand

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Neal Becker
000: 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 > >> I want to update a plo

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 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 &g

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 as

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

2013-03-11 Thread Neal Becker
file if possible. > > -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. >

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Neal Becker
e a while. > > Sorry I couldn't be of more help, but it really depends on what exactly > you are doing. Mainly, what do you mean by real-time? Do you really mean > animation? Let me know what you come up with, I'm interested. > > -Dave > > P.S. Why use a while loop? Y

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 re

[Matplotlib-users] Highlighting portions of a plot

2013-06-27 Thread Neal Becker
I have a line plot and I'd like to highlight certain segments of it. I think maybe drawing some segments in a different color might be a good visual clue. Any suggestion how to approach this? -- This SF.net email is s

[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
n xkcd > "xkcd mode is not compatible with text.usetex = True") > 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 p

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

2013-10-18 Thread Neal Becker
ib/pyplot.py", >line 293, in xkcd > "xkcd mode is not compatible with text.usetex = True") > 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&#

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). >>> >>

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_subpl

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

2013-10-18 Thread Neal Becker
ning, >> what platform, and what version of Python? Your 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

[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 p

[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 ** which

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? >

[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 /home/nbecker/.local/lib/python3.3/site-packages/matplo

[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 doi

[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

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Neal Becker
Make sure to save into a vector graphic format so it can be resized. Try pdf or svg (don't know if M$ supports svg though) Paul Hobson wrote: > Sorry hit send by accident? > > What parameters are you passing to `savefig`? > > For a presentation, I would save as a .png file, a higher resoluti

[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. > ... Ac

[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 = { "font.fami

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 -*- >

  1   2   >