I'm using matplotlib-3.10.0
I wanted to get exponent multiples of 3, and I want them formatted with
LaTeX notation like 3 x 10^6 (imagine I typed a superscript here), rather
than 3 M, which is what I'm getting. I tried:
formatter = ticker.EngFormatter(useMathText=True,)
with and witho
Christian Alis wrote:
> Have you tried making the string unicode?
>
> ax.set_xlabel (u' ')
>
>
--
Oh, thanks. That works now on py2 and py3.
--
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, *
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
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
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?
--
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
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
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
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
---
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 t
--
>> *Arnaldo D'Amaral Pereira Granja Russo*
>> Lab. de Estudos dos Oceanos e Clima
>> Instituto de Oceanografia - FURG
>>
>>
>>
>>
>> 2014-08-27 12:15 GMT-03:00 Neal Becker :
>>
>>> I'm pleased to see violinplot added to mpl-1.4
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 boxplot
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
/usr/lib64/python2.7/site-packages/matplotlib/tight_layout.py:225: UserWarning:
tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")
Traceback (most recent call last):
File "./plot_stuff2.py", line 10, in
plt.tight_layout()
File "/usr/
I use pip install --user
--
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 Dirty Data.
L
https://github.com/matplotlib/matplotlib/issues/3051
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software
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 -*-
>
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
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'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
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 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
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
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'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
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?
>
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
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
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
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
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
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).
>>>
>>
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
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
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}}$ ...
-
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
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
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
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.
>
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
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
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
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
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
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')
>
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
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?
--
> 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:
>
>
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
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
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
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
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
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
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
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
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
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
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 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
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 (
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?
---
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 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
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
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
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
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.
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
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
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
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
--
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 =
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
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
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/
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
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
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
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.
>>
>>
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.
-
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 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
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 -
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
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
/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
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
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
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 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
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
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
_
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.
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
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",
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?
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?
1 - 100 of 110 matches
Mail list logo