I'm trying to do an animation which plots a large number of items on
two dimensions, and then animates their positions over time. I have
set up the plot with my dimensions on the axes and am using
canvas.blit (as shown in one of the examples) to update my plot. I'm
using text as the
On Tuesday 09 February 2010 17:38:18 Nick Schurch wrote:
HI all,
I've been using matplotlip for a while now but mainly for line plots,
scatter plots and the odd dendrogram. I recently tried plotting a
histogram (of a binomial function) and encountered a problem. So I
though I'd try the
Hi Che,
I think turning off autoscaling is what you need:
import matplotlib.pyplot as plt
ax = plt.subplot(111, autoscaley_on=False, ylim=(0, 100))
plt.plot([1, 2], [-40, 40])
plt.show()
Kind regards,
Matthias
On Monday 08 February 2010 20:49:50 C M wrote:
I'd like to set the ticks on the y
Hi all,
How can I combine onpick events with annotate ?
Any pointer would be appreciated.
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_title('click on points')
line, = ax.plot(np.random.rand(100), 'o', picker=5) # 5
points tolerance
Thanks for all your suggestions Christoph. Launching the Tk Python Shell
instead of PythonWin seems to work consistently - I get the correct plot
figure and the correct log_plot.png file created everytime I run the
script. I never did install Ipython, but I'll consider that for a future
On Wed, Feb 10, 2010 at 4:43 AM, Nils Wagner
nwag...@iam.uni-stuttgart.de wrote:
Hi all,
How can I combine onpick events with annotate ?
Any pointer would be appreciated.
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_title('click
2010/2/9 Yannick Copin yannick.co...@laposte.net:
Hi List,
I made a script to draw very simple (single-direction single-input
single-sided single-everything) Sankey diagrams (attached). I think I could
share, if it can be of any use...
Great -- I had never heard of a Sankey diagram but just
Hi,
following my own post, I attach an upgraded version of the sankey.py script to
draw single-direction Sankey diagrams. It now supports multiple inputs and
double-sided diagrams (see attached example). Let me know if you find it
useful, and/or have any comment.
Cheers,
--
.~. Yannick
Hi,
I am a beginner with matplotlib.
I am trying to analyze huge dataset, the plot would have multiple lines. I
am getting memory error (it fails maxing out ~2.5GB on my system). I am
assuming there are probably ways to simplify the data, I came across
something 'simplify' for 'path', not sure
Hello again, I managed to produce a nice stickplot, thanks to all again.
Here is the script in case anyone is interested.
http://dl.dropbox.com/u/4411725/plt-surf-flx.html
Best, Filipe
On Mon, Feb 8, 2010 at 9:57 AM, Filipe Pires Alvarenga Fernandes
ocef...@gmail.com wrote:
Thanks, that
Hi everyone,
This has been brought up before, but not completely addressed. Is it
possible to get the text in a Legend to match the rest of the text
when using LateX? Here is an example of the problem:
import matplotlib as mpl
mpl.rcParams['text.usetex'] = True
import matplotlib.pyplot as
Dear all,
This is probably a silly question based on my bias from matlab, but I have
tried for two days without luck. I need to make pcolor plots in several
figures, and the go back and add a scatter on each. This procedure is necessary
due to how I read the data. My problem is that I can't
Dear all,
This is probably a silly question based on my bias from matlab, but I have
tried for two days without luck. I need to make pcolor plots in several
figures, and the go back and add a scatter on each. This procedure is necessary
due to how I read the data. My problem is that I can't
Jeff,
I send all of my figures through LaTeX and don't have this problem. The only
thing I can think of is to check your matplotlibrc file and make sure you've
set the legend font to be the same size as the other fonts.
HTH,
-paul h.
-Original Message-
From: Jeffrey Blackburne
Hello Krishna,
This is really crazy ploting so many data point, after all the human
eye can't separate all the data.
Try sampling the vector of the data point - to a smaller extent.
Here's a quick and dirty solution how to sample every nth element in a
vector - there's probably a faster way,
Oz Nahum wrote:
Here's a quick and dirty solution how to sample every nth element in a
vector - there's probably a faster way, with out loops,
there sure is:
In [8]: orig
Out[8]:
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19])
In [9]:
Ah, I didn't know there was a section of the rc file for legends. Adding
mpl.rcParams['font.family'] = 'serif'
mpl.rcParams['legend.fontsize'] = 'medium'
fixed things right up.
Thanks,
Jeff
On Feb 10, 2010, at 1:01 PM, phob...@geosyntec.com wrote:
Jeff,
I send all of my figures through
On 2/10/2010 1:17 PM, Oz Nahum wrote:
This is really crazy ploting so many data point, after all the human
eye can't separate all the data.
Following up on Oz's point ...
let's suppose that is 5M points for each of the 6 lines,
and that you will try to place them on a 5 inch wide axis.
That is
Really cool plot.
Speaking of the 1.0 release, is there a target date set? And if there is going
to be another bug-fix release before 1.0, is there a target date for that?
Thanks,
-Ben
-Original Message-
From: John Hunter [mailto:jdh2...@gmail.com]
Sent: Wednesday, February 10,
See Subject. I see some fairly minimal IP in a image tutorial. I'm
thinkig of things like a dark subtract.
--
Crime is way down. War is declining. And that's far from the good
news. -- Steven Pinker (and other sources) Why is this true, but yet
the media says otherwise? The media knows very
On Wed, Feb 10, 2010 at 12:44 PM, Ben Axelrod baxel...@coroware.com wrote:
Really cool plot.
Speaking of the 1.0 release, is there a target date set? And if there is
going to be another bug-fix release before 1.0, is there a target date for
that?
No target date yet, it has been on my
Hi -
I am wondering how to animate using blit and patches.
The code below was modified from one of the examples.
You will see that it shows (and moves) the rectangle just fine, but
the circle never shows up.
best,
Jaron
import gtk, gobject
import matplotlib
matplotlib.use('GTKAgg') #Agg
On Wed, Feb 10, 2010 at 12:39 PM, John Jameson
jjame...@altoresearch.com wrote:
Hi -
I am wondering how to animate using blit and patches.
The code below was modified from one of the examples.
You will see that it shows (and moves) the rectangle just fine, but
the circle never shows up.
Wayne Watson wrote:
See Subject.
not really. Try:
http://www.scipy.org/doc/api_docs/SciPy.ndimage.html
for that. I think there are other IP libs wrapped for python use, too.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206)
Whoop, the evil' mathwork even doesn't allow me to refer to a picture
on the site. ok, here's the effect I need (semilogy plotting with more
detailed grid)
http://i47.tinypic.com/95zihi.gif
Sorry for any inconvenience!
grid takes an optional argument which. Unfortunately this is not
properly documented with pylab.grid and Axes.grid.
But see
http://matplotlib.sourceforge.net/api/axis_api.html?highlight=grid#matplotlib.axis.Axis.grid
grid(True) # this turns on gridlines for major ticks
grid(True, which=minor) #
Foiled again. I clicked on the previous version, which has no MPL code
in the same def.
The show() is where things go wrong though. The question now is where
did the program go after the show()? Maybe it's time to put the
interactive debugger into play, which I've barely used. I have used
I chronicled some of my MPL problems here. It appeared that show() could
be the problem. The problem is apparently the difference between running
the program in IDLE and executing it from the folder (Maybe there's a
name for that?). There are only about 8 lines of MPL code to the show()
in a
Hi,
I put these lines
FigureCanvas.setSizePolicy(self,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding)
FigureCanvas.updateGeometry(self)
in the following code, but I have not idea what they do as the GUI seems to
behave equivalently (I can resize easily with the
29 matches
Mail list logo