I had just been looking into this myself.
My starting point would be this example:
http://stackoverflow.com/questions/13570287/image-overlay-in-3d-plot-using-python
but instead of the hard-coded '10' as the z values in plot_surface, put in
whatever data or function of x and y that you want. Using
I'm trying to do a twiny setup on one of the Axes generated from a
make_axes_locatable().append_axes() call. The new axis generated from
twiny() seems to span the entire window though. Here's the code:
from matplotlib.pyplot import *
import numpy as np
from mpl_toolkits.axes_grid1 import
Finally I got installed by following link below
That's not a PPA for Ubuntu...
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Am 12.07.2013 09:51, schrieb Phil Elson:
for instance last week we added a PPA so that with the necessary repos
added you would be able to apt-get install python-iris on an Ubuntu
machine
Could you please point me to this PPA?
Where can I find the link?
I would just use the fill_between method
http://matplotlib.org/examples/pylab_examples/fill_between_demo.html?highlight=codex%20fill_between
http://matplotlib.org/examples/pylab_examples/fill_between_demo..html?highlight=codex%20fill_between
today I found this:
?
If not, is there any eother asy way of creating labels on a line?
Best regards,
Tim
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights
Hello!
I have written a temprature logger using mathplotlib, i take in a list of
multiple lines and print them out with Linecollection, i also supply a list of
colors.
Now to the the question, what is the best way (function) to explain to the user
what line in the graph that correspond to
():
a = ma.array([[1,2,3],[4,5,6]],mask=[[0,0,1],[0,0,0]])
fig = plt.figure()
fig.patch.set_alpha(0.0)
cmap = cm.jet
cmap.set_bad(alpha=0.0)
imshow(a, interpolation='nearest', cmap=cmap)
colorbar()
show()
Any thoughts?
Tim B
Thanks, Paul! A bit of tweaking in my actual app but it now works beautifully!
On 18/01/2011, at 4:08 PM, Paul Ivanov wrote:
Tim Burgess, on 2011-01-18 13:32, wrote:
I'm generating images that I want to use as overlays in Google
Earth. Thus, I would like the masked portion of the numpy
On Dec 16, 2010 at 09:24 PM -0800, Robert Field wrote:
That's what I thought at first too, but imagemagick/graphicsmagick aren't
able to do the work. I've found something else to use in the meantime.
Thanks,
You could save an additional pdf version with your matplotlib code and
convert that
Thanks for the reply!
Do you know what makes X climb? And can you control its on some way?
// Tim
From: jdh2...@gmail.com
Date: Wed, 17 Nov 2010 05:55:04 -0600
Subject: Re: [Matplotlib-users] Formatter dates
To: qw...@hotmail.com
CC: matplotlib-users@lists.sourceforge.net
On Wed, Nov
could get the ratio and then
plot the dates by indexing the ratio times X eg. (Xmax / listlength) * X.
// Tim
From: jdh2...@gmail.com
Date: Wed, 17 Nov 2010 05:55:04 -0600
Subject: Re: [Matplotlib-users] Formatter dates
To: qw...@hotmail.com
CC: matplotlib-users@lists.sourceforge.net
) * X.
// Tim
From: jdh2...@gmail.com
Date: Wed, 17 Nov 2010 05:55:04 -0600
Subject: Re: [Matplotlib-users] Formatter dates
To: qw...@hotmail.com
CC: matplotlib-users@lists.sourceforge.net
On Wed, Nov 17, 2010 at 2:29 AM, Tim Åberg qw...@hotmail.com wrote:
Hello!
I have now been
(dates) and format it by itself.
// Tim
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3.
Spend
Nov 2010 09:55:13 +0100
Subject: Re: [Matplotlib-users] Formatter dates
From: pgmdevl...@gmail.com
To: qw...@hotmail.com
Tim, have you tried the scikits.timeseries package? Its plotting capacities,
albeit limited, may be helpful in your case...
On Nov 17, 2010 9:31 AM, Tim Åberg qw...@hotmail.com
/pylab_examples/date_index_for
matter.html.
-Original Message-
From: Tim-- [mailto:qw...@hotmail.com]
Sent: Thu 11-Nov-2010 08:54
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] Linecollection, Dates on X-axis
Hello!
I have written a program that plots
Hello!
I have written a program that plots values over Time, because it has to be
done(plotted) fast the date_plot didnt fit the bill so i moved over to
Linecollection and it works like a charm. The only problem i have now is
that i dont know any easy way to get dates on the x-axis. Any ideas?
On Jul 26, 2010 at 02:01 PM -0300, Waléria Antunes David wrote:
i don't understand..
Just divide through by '1000.' or '1000.0' (same thing).
If you write 3100/1000, you'll get '3' because you are doing integer math.
If you write 3100/1000.0, you'll get '3.1' because you are doing float math.
On Jun 24, 2010 at 04:52 PM -0400, Tim Gray wrote:
I'm updating my python install but am running into problems with
matplotlib,
as always. This time around I'd thought I'd use the .dmg installer. I've
already installed Python 2.6.5 from python.org and numpy from scipy.org.
Both
On Jun 24, 2010 at 09:37 PM -0700, Hana Sevcikova wrote:
I think you just need to direct the PYTHONPATH variable to the place where
matplotlib is installed. My PYTHONPATH looks like this:
and scipy also do this. It makes it a
lot easier to push python as a Matlab/IDL replacement if potential users can
just download four dmgs (python, numpy, scipy, and matplotlib) and it all
just works out of the box.
Thanks for the help!
Tim
: Is there a good reason for this? And what's the workaround.
Thanks.
Tim
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list
Hello,
I have a similar problem to:
Suppose I plot a line from (0,0) to (1,1.5) to (2,2). Now I want to mark
(1,1.5) with a green circle. How is that done?
I am performing a curve fit and also showing a distribution in my plot.
In order to help the reader to evaluate the result I would like to
On 10/11/2009, at 3:37 AM, Christopher Barker wrote:
Tim Burgess wrote:
Sodecided to go down the MacPorts path. Many automated
downloads later, I now have a successful Basemap install (yay!)
Many thanks to the folks who have contributed to MacPorts and
interestingly geos 3.1.1
/site-packages/numpy/core/numeric.py, line 230, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.
Can a multicolor line be done with dates. if so, what is the
manipulation I need to do for dates?
Tim Burgess
Hello,
I am trying to create a plot that resembles the layout of the chart seen
below:
http://www.nabble.com/file/p21721073/brisbane.png
are you actually trying to plot sun path digrams?
May you share a part of your code once it is completed?
I'd be very interested in seeing a working
Hello,
are the nice examples from gallery on the matplotlib homepage somewhere
available as a ZIP-archive?
I would like to have them as reference during time I am not connected to
the net.
Thanks and regards,
Timmie
Hello Mauro,
I am not just trying,
Sorry for disregarding your using the term trying.
I am indeed implementing a software package
for species distribution mapping and biogeographic analysis, using
wxPython/Matplotlib.
Thanks for being more specific. There is another program aiming at
Hello!
I am attaching the current version of source code plus a screenshot.
I would like to ask you why you are trying to implement this by yourself
in wxPython/matplotlib.
There are already two pythonised applications that may be used for your
purpose. And they are aware of the projections
Hello,
excuse the late reply.
But you may be interested in the timeseries scikit:
http://scipy.org/scipy/scikits/wiki/TimeSeries
http://www.scipy.org/Cookbook/TimeSeries/FAQ
Have success!
Kind regards,
Timmie
-
This
Hello Jeff,
I just wanna give feedback on what got me going here:
data preparation
### data is loaded from a CSV file
###
lats = y # data[:,0]
## lon = x
lons = x # data[:,1]
## values = z
values = z #data[:,2]
###
lat_uniq = list(set(lats.tolist()))
nlats = len(lat_uniq)
lon_uniq =
Looks like I've done a mistake with my last post, sorry Eli...
I know how to save datas to a shapefile with the OGR library but only
for points datas.
I'll appreciate if somebody can point me how to save a filled contour
map basemap into a polygon shapefile, can't find any example with
I'd love to see it included to -- I believe the problem is finding a
good code that is BSD compatible.
Yes.
Some examples on plotting data using spatial interpolation would be very
nice.
One with the delauny package:
see below at: http://scipy.org/scipy/scikits/
And one with griddata:
Oz Nahum schrieb:
Hi,
I want to draw a contour plot which uses data from files. I know how to
import the files, so it's not the main issue.
I was discussion a similar issue with Jeff this week.
Take a look at the thread:
http://news.gmane.org/gmane.comp.python.matplotlib.general
Dear Matplotlib-Users,
I am tryring to create a contour plot over a basemap.
My main problem is creating the array for the Z values as a basis for the
plt.contour command from a CSV file where latitude, longitude and value are
stored column-wise:
lat;lon;value
50; 10; 6
...
The
Hello Jeff,
- Points stored in the above descripbed format (lat, lon, value)?
This one I solved using a m.scatter() function
- Interpolate a grid of data points by using different interpolation
methods like inverse distance wheighting, natural neighbor
interpolation, etc. to get a
Hello,
thanks.
I checked again from contour_demo.py of the basemap distribution.
There lats, lons are uniquely monoton increasing from 0-360 and from -90 to 90.
In my case data is written row-by-row:
* increasing from lowest latitude western most longitude to easternmost
longitude and then
Hello Jeff,
Timme: Here's one way to do it
many thanks so far. I still have to inspect and improve my script. But
at least your code lead me to some contourd surface.
I will come back and tell if it worked. Unfortunately I cannot disclose
the data nor the results because of copyright issues.
Thanks
Tim
--
Tim Mitchell
Software Engineer
Applied Research Associates (NZ) Ltd. (www.aranz.com)
Ph: +64 (3) 374-6120 ext: 203
Fax: +64 (3) 374-6130
Skype: tim-mitchell
inline: noscale.png-
This SF.net email is sponsored
)
window.show_all()
gtk.main()
I can use the axes position to work I guess but that seems rather
unsatisfactory as I'll have to figure out when it's being displayed or
not, font sizing and spacing blah blah blah.
Is there an easier way around this (or a fix?)? I'm using v0.90.0
Thanks
Tim
hopefully this is a good place to start.
Spoilt for choice, swamped by info, uncertain how best to proceed.
many thanks
Tim
-
***
www.phasetransitions.net
hermetic music * python * csound * possibly mindless ranting
various werk in perpetual delusions of progress
--
View
', 'linecache',
'matplotlib.shutil', 'time', 'idlelib.select', 'idlelib.run']
numerix numpy 1.0.3.1
$HOME=C:\Documents and Settings\Tim
CONFIGDIR=C:\Documents and Settings\Tim\.matplotlib
Using fontManager instance from C:\Documents and
Settings\Tim\.matplotlib\fontManager.cache
matplotlib data path C:\Python25
Timmie: It's possible that the windows installer is missing the httplib2
module - I don't have access to windows right now to check. Could you
try installing httplib2 and let me know if that fixes it?
Installing httplib2 solved the issue.
Has this dependancy on httplib2 been introduced in
Hello,
using the basemap toolkit on Windows with Python 2.5 I get the following import
error:
In [1]: from matplotlib.toolkits.basemap import Basemap
---
type 'exceptions.ImportError' Traceback (most recent call
Hello!
Hmm, I did reinstall and still no joy, it insists on install python2.4
at the same time!
do a
$: sudo apt-get --purge remove matplotlib ipython
to really remove the configuration files. then
$: sudo apt-get install matplotlib ipython
check if pylab is on your system:
$: locate pylab
/www/www/cgi-bin/, (since it is present), and not from
/home/private/mpl/.matplotlib/. Perhaps there is something incorrect in
that matplotlibrc file.
Cheers,
Mike
Tim Lewis wrote:
Can you set verbose.level to debug-annoying in your matplotlibrc and
send us the output? That may help provide
to run it from the command line, but I haven't done it before
(and not sure how to do it); the web hosting server is in a land far
far away. :-) I am just running the script from a http request. I
can probably have them run it if need to.
Thanks,
Tim Lewis wrote:
I'm using the code from
http
I'm using the code from
http://www.scipy.org/Cookbook/Matplotlib/Using_MatPlotLib_in_a_CGI_script to
generate plots from my web server. The plot shows up fine (w/o text) but
when I use xlabel(x-axis), ylabel(y-axis), or title(A Chart); no text
shows up on the plot. Everything seems fine with the
this
project off the ground.
Tim
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net
oops, my bad. thanks for the correction.
t
Robert Kern wrote:
Tim Hirzel wrote:
Its a little tough right now that os x doesn't have one python
install to rule them all.
Yes it does.
http://www.python.org/download
now that os x doesn't have one python
install to rule them all. Instead, there are about 5 (not an actual
count) ways to do it, most with gotchas.
tim
Simson Garfinkel wrote:
Alas, tried the easy_install matplotlib. It downloaded and installed
matplotlib, but didn't install wx, so I got
I've had similar problems running wxPython code under certain IDEs where
things can go very poorly (dramatic crashing, or it just wont execute).
At least with the wx or wxagg backends, I have no trouble running
matplotlib demos such as ellipse_demo.py from inside eclipse+pydev.
-tim
Gary
wins for me.
tim
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys-and earn cash
http
53 matches
Mail list logo