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
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
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?
--
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
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
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, *
Christian Alis wrote:
> Have you tried making the string unicode?
>
> ax.set_xlabel (u' ')
>
>
--
Oh, thanks. That works now on py2 and py3.
--
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
_
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?
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?
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",
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
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
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.
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
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
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
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
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
/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
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
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
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 -
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
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
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.
-
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.
>>
>>
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
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
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
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/
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
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
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 =
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
--
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
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
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
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.
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
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
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
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
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
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?
---
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 (
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
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
>>
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
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.
--
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
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
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
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?
---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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:
>
>
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?
--
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
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')
>
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
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
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
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
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
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.
>
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
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
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
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}}$ ...
-
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
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
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).
>>>
>>
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
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
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
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
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
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?
>
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
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
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
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
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
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
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
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
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 - 100 of 109 matches
Mail list logo