thank you! of course!
On Wed, Oct 5, 2011 at 3:08 PM, Eric Firing wrote:
> On 10/04/2011 05:40 PM, questions anon wrote:
> > Excellent, thank you. That works for both quiver and barb.
> > In regards to the shape that has to do with the netcdf file, wind
> > direction variable also has lat and lo
On 10/04/2011 05:40 PM, questions anon wrote:
> Excellent, thank you. That works for both quiver and barb.
> In regards to the shape that has to do with the netcdf file, wind
> direction variable also has lat and lon. I ended up needing to slice so
> I could skip a few points otherwise there was to
Excellent, thank you. That works for both quiver and barb.
In regards to the shape that has to do with the netcdf file, wind direction
variable also has lat and lon. I ended up needing to slice so I could skip a
few points otherwise there was too many arrows on the map.
Below is the code that worke
Mike,
You may want to look into the matplotlib.cm and matplotlib.colors modules.
I've had good success with matplotlib.colors.LinearSegmentedColormap and its
'from_list' method. The documentation is the best location for information
on this topic. If you have a large number of locations, then the
Anon,
I don't know the quiver routine, but u and v are usually vectors for the wind
speed in the east-west and north south directions. As such they should not be
equal to lat and lon (*10), as you are doing, but rather should be windspeed *
sin(direction) and windspeed*cos(direction). If you
For those interested things are defined differently.
ax.axis["bottom"].major_ticklabels.set_pad(10)
ax.axis["bottom"].label.set_pad(15)
ax.axis["bottom"].major_ticklabels.set_rotation(30)
explained well here
(http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axisartist.html#axisarti
Hi,
I can't seem to combine the ability to rotate labels and make labels bold
when I use the axislines toolkit
(http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html).
Is there a way to make this work?
e.g. the below script does not rotate the xtick labels or make the la
John,
I'll give this method a try also.
Thanks for the ideas!
Mike
John Ladasky-3 wrote:
>
> On Mon, 2011-10-03 at 12:49 -0700, Michael Castleton wrote:
>> Hello,
>> I am using Matplotlib 1.0.0 in Python 2.6.
>> I am trying to plot time series data of unique IDs and color the points
>> based o
Thanks for responding. I believe quiver is more appropriate because I am
only using wind direction (at this stage) and this results in arrows.
I have had a look at the demos and still do not understand how to plot my
degrees in arrows. How do I define which angle is north, south, west, east,
etc?
A
Ryan,
I should clarify my color issue. Your code is smart enough to generate
however many colors are needed but I want to make sure the colors are all
unique.
Thanks again!
Mike
Mike, sorry to send this twice... I should have sent it to the list as
well...
___
Mike,
Ryan,
I have tried setting c=locations (after converting to float) and gotten
inconsistent results. For a dataset with ~32,000 points it seems to work,
but a 2nd dataset of ~100,000 points colors everything the same even though
there are at least 10 locations.
Your second idea works nicely and I'm
Hi Nils.
I have never tried to do a real printout, so I am no expert here. My use case
was almost always to directly create pdf or ps documents, which can be done
nicely using the several print_* methods of the figurecanvas.
You can use Actions for your case instead of a widget. Actually they s
On Mon, 2011-10-03 at 12:49 -0700, Michael Castleton wrote:
> Hello,
> I am using Matplotlib 1.0.0 in Python 2.6.
> I am trying to plot time series data of unique IDs and color the points
> based on location. Each data point has a unique ID value, a date value, and
> a location value.
> The unique
On Tue, 4 Oct 2011 10:09:57 +0200
Jens Nie wrote:
> Hi Nils.
>
> The Qt based Navigation toolbar is just a Qt Widget with
>a proper layout already set. So you should be able to add
>any Qt widget to the toolbar using its addWidget method.
> I was able to add a simple line edit (without any us
Hi Nils.
The Qt based Navigation toolbar is just a Qt Widget with a proper layout
already set. So you should be able to add any Qt widget to the toolbar using
its addWidget method.
I was able to add a simple line edit (without any use) like so:
import sys
from PyQt4.QtCore import *
from PyQt4.Q
15 matches
Mail list logo