Same here.
-paul h.
On Fri, Sep 17, 2010 at 2:21 PM, Jeffrey Blackburne
jblackbu...@gmail.com wrote:
I get a solid line for plt.step like you do.
MPL 1.0.0, SVN revision 8657.
-Jeff
On Sep 17, 2010, at 4:34 PM, Gökhan Sever wrote:
Hello,
Can someone confirm me if this creates a dashed
the label
as in the example image?: Data from Riess et al (2004)
Thanks,
Waleria.
On Tue, Oct 19, 2010 at 3:50 PM, Paul Hobson pmhob...@gmail.com wrote:
Waléria,
Hopefully this example helps:
# code...
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot
On Tue, Sep 6, 2011 at 12:58 PM, Benjamin Root ben.r...@ou.edu wrote:
I don't know the full details, but the idea was that we didn't want to have
SciPy as a dependency, so mlab was used to replicate many of the functions
found in SciPy. I don't know why the calling conventions are different,
Ben and Yves,
Might this be behavior defined in the matplotlibrc file?
In [21]: import matplotlib as mpl
In [22]: mpl.rcParams['figure.edgecolor']
Out[22]: 'w'
-paul
On Fri, Sep 9, 2011 at 9:37 AM, Benjamin Root ben.r...@ou.edu wrote:
On Fri, Sep 9, 2011 at 3:49 AM, Yves Revaz
I am hoping to have a general discussion about font choices other
matplotlib users make when the figure will be seen by someone other
than yourself. Generally speaking, my figures go in to technical
memos, automatically generated reports, and on rare occasion a web
page.
For memos (created in
To the best of my knowledge, this beyond the scope of matplotlib.
Scipy or Shapely *might* have something for you, but you best bet is
to look into the raster clipping functionality of GDAL/OGR.
Hope that helps,
-paul
On Thu, Nov 3, 2011 at 3:40 PM, questions anon questions.a...@gmail.com wrote:
Gökhan,
This a great trick! Much simpler than digging around with line
segments and such. My old solution to this problem was so clunky and
slow I'm embarrassed to post it. Thanks so much for sharing this.
-paul
On Sat, Nov 5, 2011 at 9:39 PM, Gökhan Sever gokhanse...@gmail.com wrote:
Hi,
I
On Wed, Nov 30, 2011 at 7:43 PM, Benjamin Root ben.r...@ou.edu wrote:
As an additional note, would it be a desirable feature to be able to cycle
hash styles in the case of producing bw plots?
Ben Root
Ben,
I think this would be quite useful. How are you thinking of
implementing it? Cycling
I always taylor a matplotlibrc file for a given project, but you can
modify the rc parameters on the fly:
http://matplotlib.sourceforge.net/users/customizing.html#dynamic-rc-settings
You need to set themodified rc parameters at the top of your script.
Hope that helps.
-paul
On Wed, Jan 25,
There is undoubtedly a more efficient way to do this, but give this a shot:
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0, 10.5, 0.5)
y = -3.0*x + 0.5*x**2
color_list = ['FireBrick', 'Orange', 'DarkGreen', 'DarkBlue', 'Indigo']
limits = np.arange(0, 11, 2)
fig, ax1 =
Federico,
You were so close! Try this:
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(range(100), range(100))
#If comment the following line everything is fine
ax.set_xscale('log')
xaxis = ax.get_xaxis()
xaxis.grid(False, which='minor')
xaxis.grid(False, which='major')
plt.show()
Hope
David,
The loop is you have is unnecessary. You can plot the markers and the
lines at the same time like so:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import matplotlib.lines as lines
import numpy as np
m =
, y = m(lons, lats) # forgot this line
m.plot(x, y, 'D-', markersize=10, linewidth=2, color='k', markerfacecolor='b')
m.drawcoastlines()
plt.show()
On Thu, Mar 1, 2012 at 6:43 PM, Paul Hobson pmhob...@gmail.com wrote:
David,
The loop is you have is unnecessary. You can plot the markers
Jerzy et al,
Check out the axvline method (of pyplot or an axes object). You'll
only have to specify the x-value, and it'll won't rescale your y-axis.
-paul
On Thu, Mar 8, 2012 at 4:50 AM, Jerzy Karczmarczuk
jerzy.karczmarc...@unicaen.fr wrote:
Nicolas Rougier, (to Mic, who can't see a
In my GIS experience, rasters don't have prj files. That's something
that seems to be pretty specific to ESRI shapefiles. Point is, I don't
think that's going to help you.
All of the basemap examples use netcdf files. I think your path of
least resistance right now is to figure out how to convert
Try it like this:
fig, axes = plt.subplots(3,1,1)
ax1, ax2, ax3 = axes
p1, = ax1.plot(self.data0,self.data1)
p2, = ax2.plot(self.data0,self.data2)
p3, = ax3.plot(self.data0,self.data4)
for ax in axes:
Sorry...That first line should be:
fig, axes = plt.subplots(ncols=3) # note: subplotS not subplot
On Mon, Mar 19, 2012 at 5:45 PM, Paul Hobson pmhob...@gmail.com wrote:
Try it like this:
fig, axes = plt.subplots(3,1,1)
ax1, ax2, ax3 = axes
p1, = ax1
On Tue, Mar 20, 2012 at 5:27 AM, kususe kus...@interfree.it wrote:
If I set the parameter transparent in the savefig function, more line are
plotted out on the same figure, when I use the subplot function too.
If I don't set it, all works well.
Suggestions?
I don't follow what you're saying
Brad,
Matplotlib axes objects have set_xticklabels methods. It's brute
force, but this will work:
ax = gca()
ax.set_xticks([0., 0.015, 0.03])
ax.set_xticklabels(['0', '0.015', '0.03'])
Hope that helps,
-paul
On Thu, Mar 29, 2012 at 1:13 PM, Brad Malone brad.mal...@gmail.com wrote:
Hello,
I
How did you install Python 2.7? None of my windows machines have ever
hand any problem finding it when I installed from the official
binaries found at python.org.
-paul
On Fri, Mar 30, 2012 at 9:56 AM, Mateusz J Burgunder
mburgun...@wesleyan.edu wrote:
Hello,
I am trying to download matplot
Ben
Does ax.set_xlim([0,50]) do what you want it to do?
-paul
On Tue, Apr 3, 2012 at 5:57 PM, Ben Harrison
ben.harri...@liquidmesh.com wrote:
I create my figure in my (non-interactive) script like so:
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(...)
On Mon, Apr 16, 2012 at 4:58 AM, Yannick Copin
yannick.co...@laposte.net wrote:
Hi List,
I think I found a bug in legend of a fill command (see attached code and
figure) when the facecolor is 'none' but the alpha is not None (I'm using
latest matplotlib 1.1.0). If confirmed, should I fill in
Pietro,
Try the following:
-set minor ticks at half intervals between your major ticks
-labeling those as you currently label the major ticks
-remove the minor tick markers (set markersize=0?)
-clear out the major tick labels
-paul
On Fri, Apr 20, 2012 at 12:49 AM, Pietro peter.z...@gmail.com
Neal,
I can't run your script as is, but something as simple as this show work:
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_xscale('log')
ax.xaxis.grid(True, which='major')
ax.xaxis.grid(True, which='minor')
plt.show()
On Tue, May 15, 2012 at 10:18 AM,
On Mon, Jun 11, 2012 at 11:03 PM, Justin R justinbr...@gmail.com wrote:
operating system Windows 7
matplotlib version : 1.1.0
obtained from sourceforge
the class seems to generate the same Wt matrix for every input. The
every element of the weight matrix is either +sqrt(1/2) or -sqrt(1/2).
On Wed, Jun 27, 2012 at 5:02 PM, Daniel Platz
mail.to.daniel.pl...@googlemail.com wrote:
Hello,
I would like to plot a simple line using plt.plot(x, y, ‘w--’, lw=2)
or with the corresponding axes instance ax.plot(x, y, ‘w--’, lw=2).
However, I want the line to have a thin black edge like the
On Fri, Aug 17, 2012 at 2:30 PM, Timothy Duly timdu...@gmail.com wrote:
Hi,
I'm having trouble installing matplotlib on mac os x. I downloaded the dmg
file (matplotlib-1.1.1-py2.7-python.org-macosx10.6.dmg) from
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1/
.
On Tue, Aug 21, 2012 at 7:58 AM, Virgil Stokes v...@it.uu.se wrote:
In reference to my previous email.
How can I find the outliers (samples points beyond the whiskers) in the data
used for the boxplot?
Here is a code snippet that shows how it was used for the timings data (a list
of 4
On Tue, Aug 21, 2012 at 8:56 AM, Virgil Stokes v...@it.uu.se wrote:
On 21-Aug-2012 17:50, Paul Hobson wrote:
On Tue, Aug 21, 2012 at 7:58 AM, Virgil Stokes v...@it.uu.se wrote:
In reference to my previous email.
How can I find the outliers (samples points beyond the whiskers) in the
data
On Mon, Sep 24, 2012 at 12:21 AM, Paul Tremblay paulhtremb...@gmail.com
wrote:
Here is my example of a Pareto chart.
For an explanation of a Pareto chart:
http://en.wikipedia.org/wiki/Pareto_chart
Could I get this chart added to the matplolib gallery?
Thanks
Paul
On 9/24/12 4:40
On Wed, Oct 3, 2012 at 6:25 AM, Harshad Surdi harshadsu...@gmail.com wrote:
Hi,
I am using Eclipse IDE for Java Developers with PyDev on Ubuntu 12.04 and I
am quite new to Ubuntu and Eclipse. Can you guide me as to hos to update
matplotlib in PyDev in Eclipse?
--
Best Regards,
Harshad
On Sat, Nov 10, 2012 at 7:07 AM, Chao YUE chaoyue...@gmail.com wrote:
Dear all,
Is there a way to reverse the colorbar label, the default is small value at
the bottom and big value at the top, yet I would like the big value at the
bottom and small value at the top.
all code in pylab
On Sat, Nov 10, 2012 at 6:25 AM, Chao YUE chaoyue...@gmail.com wrote:
Dear all,
In the colorbar label for contourf or imshow plot, I want the effect like
that in the attached figure. Is there some way to move the position of
colorbar label? could someone give any hints?
Chao,
It's not
On Thu, Nov 15, 2012 at 2:48 PM, Boris Vladimir Comi
gle...@comunidad.unam.mx wrote:
Hi all:
I have begun to learn about python / matplolib / basemap and really need some
help.
My data is in an Excel workbook in format .xls or csv(see attached):
1. How to open excel file in python?
2.
On Mon, Dec 10, 2012 at 12:15 PM, Timothy Duly timdu...@gmail.com wrote:
Hi,
I recently upgraded to matplotlib v1.2.0 on my Linux machine. For some
reason, plots are not appearing at all on my screen whenever I try to plot
any routines.
When I open the interpreter with ipython --pylab and
On Wed, Dec 12, 2012 at 7:55 AM, Forrester, Kurt
kurt.forrester@gmail.com wrote:
ax.set_xlim(0.5, 2)
ax.set_xscale('log', basex=2, subsx=range(2,9))
Kurt,
That `subsx` kwarg is tricky. Does this example get you closer to what you
want?
import numpy as np
import matplotlib.pyplot as
On Thu, Dec 20, 2012 at 1:05 PM, Kynn Jones kyn...@gmail.com wrote:
I create PNG files of scatterplots with code that, in essence, goes as in
the sketch below:
cmap = (matplotlib.color.LinearSegmentedColormap.
from_list('blueWhiteRed', ['blue', 'white', 'red']))
fig =
On Wed, Dec 26, 2012 at 6:49 AM, Diego Avesani diego.aves...@gmail.comwrote:
Dear all,
I need to plot a 2D rectangle in a 3D plot.
I already know how to put a circle. I have started from:
http://matplotlib.org/examples/mplot3d/pathpatch3d_demo.html
and inserting the alpha parameter.
*p =
On Wed, Jan 2, 2013 at 4:46 PM, Joe Louderback jglouderb...@gmail.comwrote:
import matplotlib.pyplot as plt
fig = plt.figure()
plot = fig.add_subplot(111)
plot.scatter([1, 2, 3], [4, 5, 6], c = [0.2, 0.4, 0.6], label = 'one',
cmap = 'jet', marker = 'o', edgecolor = 'face')
On Fri, Jan 4, 2013 at 8:41 AM, gsal salger...@gmail.com wrote:
So, it looks like broken_barh's do not show up on the legend...is there
work
around for this?
Or,
Is there a way to fake a legend? A way to set legend to whatever I want?
Thanks,
gsal
To fake a legend, try using
[Forgot to reply-all, sorry for the dup, gsal]
On Fri, Jan 4, 2013 at 1:22 PM, gsal salger...@gmail.com wrote:
can you provide an example? The reference help is only two lines!
Given:
[code]
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
Sounds like it might have something to do with your Latex installation (if
any) or the barebones Latex-rendering done by MPL alone. Namely, they
simply don't have the characters for mathematical Arial available.
Not too sure though. Hopefully someone more knowledgeable responds.
-paul
On Tue,
On Mon, Jan 14, 2013 at 8:50 AM, Alejandro Weinstein
alejandro.weinst...@gmail.com wrote:
On Mon, Jan 14, 2013 at 9:42 AM, Paul Hobson pmhob...@gmail.com wrote:
import matplotlib.pyplot as plt
import numpy as np
A = np.random.rand(100,10) / 100
fig, ax = plt.subplots()
img
On Jan 15, 2013, at 20:52 , Steven Boada wrote:
Heyya list.
I must admit that my matplotlib-foo is only so so. One of the biggest
problems that I face is seeing cool stuff around the net, and thinking,
that's pretty neat, I'd like to copy it. In reality, I have no idea
how I would go
On Wed, Jan 16, 2013 at 7:07 AM, Daniele Nicolodi dani...@grinta.netwrote:
Hello,
I use matplotlib.pyplot.text() to annotate my plots.
When annotating reference lines on simple x,y plots I find it quite
annoying to have to manually compute an offset in data coordinates to
have some spacing
On Thu, Jan 17, 2013 at 8:10 AM, Fabien Lafont lafont.fab...@gmail.comwrote:
Thanks! I have:Qt4Agg
2013/1/17 Benjamin Root ben.r...@ou.edu
On Thu, Jan 17, 2013 at 8:43 AM, Fabien Lafont
lafont.fab...@gmail.comwrote:
What is a backend??? The version number? I'm using Matplotlib
On Tue, Jan 22, 2013 at 12:22 PM, Jonathan Slavin
jsla...@cfa.harvard.eduwrote:
Hi,
I'm having some trouble with using twiny and a title on the plot. The
title is writing over the axis label -- and even the tick labels. I've
tried tight_layout() but it doesn't seem to help. I could use
On Mon, Jan 21, 2013 at 4:28 AM, Kelson Zawack k...@cornell.edu wrote:
a heat map and want to label each row. I thus need the font
size of the text to scale with the number of rows in the heat map. Is
Assuming you start out with this:
import matplotlib.pyplot as plt
fig, ax1 =
On Thu, Jan 24, 2013 at 9:35 AM, Chao YUE chaoyue...@gmail.com wrote:
Dear all,
why I can only recieve the Matplotlib-users Digest, but not the email.
Each time I need to go
http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html to reply
the the mail.
I think I must miss
On Mon, Jan 28, 2013 at 10:20 AM, Orgun ambr...@gmail.com wrote:
Hi guy,
as I'm new to matplotlib I tried to install it following the instructions
on
http://matplotlib.org/faq/installing_faq.html#source-install-from-git
http://matplotlib.org/faq/installing_faq.html#source-install-from-git
On Mon, Jan 28, 2013 at 9:41 PM, Boris Vladimir Comi
gle...@comunidad.unam.mx wrote:
#! /usr/bin/python
import numpy as np
data =
np.loadtxt('path-tracks.csv',dtype=np.str,delimiter=',',skiprows=1)
print data
[['19.70' '-95.20' '2/5/04 6:45 AM' '1' '-38' 'CCM']
['19.70'
On Thu, Feb 7, 2013 at 3:24 AM, Sudheer Joseph sudheer.jos...@yahoo.comwrote:
Dear Users,
I am relatively new to Matplotlib. I wanted to find cross
correlation between 2 time series for my research and was looking at
options available with python and found
On Thu, Feb 21, 2013 at 1:08 AM, patricia ptramba...@hotmail.com wrote:
Dear Jody,
This is the original code that I am using:
http://old.nabble.com/Taylor-diagram-(2nd-take)-p33364690.html
It is a code that plots Taylor diagrams.
I would like to get ticks every two points in the standard
On Wed, Feb 27, 2013 at 1:49 AM, Rita rmorgan...@gmail.com wrote:
Hi,
I am currently plotting cpu utilization over time (plot_time). I would
like the color of my line to be red when at 100%. 80-90% a bit less red,
more yellow, and lower numbers will be green. Any thoughts of doing this?
A
On Wed, Feb 27, 2013 at 1:01 AM, Sudheer Joseph sudheer.jos...@yahoo.comwrote:
Dear Pierre,
I was checking the plt.xcorr and it calls the
np.correlate in side it. It calls np.correlate(ts1,ts2, mode=2).
Is there a way to see which vector is sided back in time? ie
On Mon, Mar 4, 2013 at 11:23 AM, William Furnass w...@thearete.co.ukwrote:
Several backends will show you the x and y float values that
correspond to the current cursor position in a plot() but are there
backends that show the _datetime_ corresponding to the x position if
the plotted data is
On Wed, Mar 6, 2013 at 2:00 PM, Clifford Lyon clifford.l...@gmail.comwrote:
I wish to make a boxplot with data in this format:
Value, Frequency
0, 128329
1, 20390
2, 230
3, 32
4, 3
etc. Rather than expand this into a flat array, is there some way to pass
in weights for values? Some
On Thu, Mar 14, 2013 at 12:40 AM, paul.czodrow...@merckgroup.com wrote:
Dear Matplotlibbers,
I'm running matplotlib 1.1.0 and would like to plot pairs of values,
e.g.
[[0.27,0.43],[0.17,0.35]]
When using boxplot, the values of the pairs correspond to the outer
whiskers, but I would like
On Fri, Mar 15, 2013 at 8:01 AM, Christophe BAL projet...@gmail.com wrote:
Hello,
I really appreciate the work done by matplotlib but I really think that
the interface must evolve. Here is a small example.
*object.set_something(...)*
*object.get_something()*
It could be easier to
On Tue, Mar 19, 2013 at 2:22 AM, Sudheer Joseph sudheer.jos...@yahoo.comwrote:
Dear users,
Attached is a windrose diagram created by using
https://sourceforge.net/project/showfiles.php?group_id=239240package_id=290902.
Can any one tell me if the numbers displayed in
On Mon, Mar 18, 2013 at 8:34 PM, Mark Lawrence breamore...@yahoo.co.ukwrote:
Matplotlib 1.2.0, Windows Vista, Python 3.3.0. I want the first major
xtick label aligned with the first date that's plotted. This never
happens with the value of day below set in the range zero to six. The
first
On Tue, Mar 19, 2013 at 11:30 AM, Paul Hobson pmhob...@gmail.com wrote:
On Mon, Mar 18, 2013 at 8:34 PM, Mark Lawrence breamore...@yahoo.co.ukwrote:
Matplotlib 1.2.0, Windows Vista, Python 3.3.0. I want the first major
xtick label aligned with the first date that's plotted. This never
On Thu, May 2, 2013 at 11:19 AM, Michael Droettboom md...@stsci.edu wrote:
I think the confusion here stems from the fact that you're mixing TeX
and non-TeX font commands.
This turns on TeX mode, so all of the text is rendered with an external
TeX installation:
rc('text', usetex=True)
On Fri, May 3, 2013 at 6:17 AM, Michael Droettboom md...@stsci.edu wrote:
On 05/02/2013 03:16 PM, Paul Hobson wrote
I now see that this was more of TeX issue than an MPL configuration
issue. Your help prompted me to find this solution (similar to yours):
mpl.rcParams
On Wed, May 15, 2013 at 3:48 PM, gaspra yes2...@gmail.com wrote:
Hi, I am having troubles to correctly make a figure with inverted log axis.
This is what I am doing:
import numpy as np
import matplotlib.pyplot as plt
y=np.linspace(-90,90,20)
z=np.arange(1,1.e4, 200)
Sorry I have to be so brief, but just like the error says, you fed the
legend function the wedges returned by the pie command. But legend can't
handle wedges. As the proxy artist tutorial hints, you need to feed it
rectangles created manually (i.e., outside of any plotting commands).
Hope that
On Wed, Jun 5, 2013 at 9:13 AM, Sudheer Joseph sudheer.jos...@yahoo.comwrote:
Dear Users,
Is there any other method in matplotlib to get the plot
similar to the one there in below link?
http://dsnra.jpl.nasa.gov/software/Python/scikits/lib.plotting.examples.html
I tried
sudheer.jos...@yahoo.com
*To:* Paul Hobson pmhob...@gmail.com
*Cc:* matplotlib-users@lists.sourceforge.net
matplotlib-users@lists.sourceforge.net
*Sent:* Saturday, 8 June 2013 7:46 PM
*Subject:* Re: [Matplotlib-users] time axis format
Thank you Paul for the helping hand
On Thu, Jun 13, 2013 at 4:47 AM, Daniel Mader
danielstefanma...@googlemail.com wrote:
Hi,
I need a twinx() plot with horizontal and vertical grid lines for the
second axis, just like the usual grid for the first axis. I don't need or
want to specify the ticks manually, though!
My example
On Thu, Jun 13, 2013 at 11:40 PM, Sudheer Joseph
sudheer.jos...@yahoo.comwrote:
Thank you,
I don't see a way other than starting in normal mode as the moment I type
plot command it get displayed and I don't need to do a show command.
In the qtconsole, you can enter multi-line mode with
On Thu, Jun 13, 2013 at 1:33 PM, Daniel Mader
danielstefanma...@googlemail.com wrote:
Hi Paul,
I've modified your suggestion a little, since I don't want a grid for the
primary axis at all -- unfortunately to no avail, i.e. no grid line at all:
import numpy
import matplotlib
Guilherme,
Check out my implementation of windroses here:
https://github.com/phobson/python-metar/blob/master/metar/graphics.py#L138
On Mon, Jul 22, 2013 at 11:54 AM, Guilherme Araújo Martins
gami...@globo.com wrote:
Hello guys.
I'm having a problem with a matplot graphic and I guess it can
On Thu, Jul 25, 2013 at 12:16 PM, Jeffrey Spencer jeffspenc...@gmail.comwrote:
I want to use IPA vowel labels in my figures and to do that I need to load
the package in latex \usepackage{tipa}. Is this possible as searching
online besides using the new backend pgf I haven't seen how to
Mike,
That's great news. Is there any chance we can look forward to official
instructions for setting up a Mac to develop matplotlib?
I gave up a long time ago and started piecing to together my meager PRs in
a linux VM.
-paul
On Fri, Aug 16, 2013 at 6:52 AM, Michael Droettboom md...@stsci.edu
On Mon, Sep 30, 2013 at 1:43 PM, KURT PETERS petersk...@msn.com wrote:
I'm including the code below to demonstrate the problem. The top should
have simtimedata (0 through 28) labeling the points. As you can see,
MATPLOTLIB just distributes those values evenly instead of assigning them
On Mon, Sep 30, 2013 at 4:50 PM, KURT PETERS petersk...@msn.com wrote:
That doesn't seem to fix it. What I'm expecting is at the top, 28 should
correspond to the value -2. Instead it puts a 30 there.
Kurt
It's not really clear to me what you're trying to do. But the rounding of
the axes
On Wed, Oct 23, 2013 at 9:30 PM, Sourav Chatterjee srv@gmail.comwrote:
Hello,
I have stereographic projection of the pole. I need to indicate the
directions like north,south,east, west, north-east, north-west and so on.
Is there any way to do so?
Thanks
Sourav
I am **very far** from
Hey Sourav,
This example should demonstrate the basics of setting xticks and xticklabels
http://matplotlib.org/examples/ticks_and_spines/ticklabels_demo_rotation.html
On Sat, Nov 23, 2013 at 4:27 AM, Sourav Chatterjee srv@gmail.comwrote:
Hi, I have simple xy plot using below.
import
Matthew,
I think you're on the right track. You need proxy artists of some sort. You
can create Line2D objects directly, never add them to the figure, and then
use those to create the legend.
An alternatively/hacky approach I often use is to the plot all the real
data with '_nolegend' labels,
Here are a couple of examples of using custom formats:
http://matplotlib.org/examples/api/date_index_formatter.html
http://matplotlib.org/examples/pylab_examples/date_demo2.html
And here's a link with all of the possible formatting strings:
http://www.tutorialspoint.com/python/time_strftime.htm
I believe (as of v1.3.1) that after you create the legend you call
leg.draggable(True)
http://matplotlib.org/api/legend_api.html#matplotlib.legend.Legend.draggable
On Tue, Jan 7, 2014 at 6:37 AM, Skip Montanaro s...@pobox.com wrote:
Sometimes the legend simply gets in the way. You can't
Adam,
Not sure if this is the try you're trying to bark up, but I've used a total
hack to do what I think you're describing:
1) store lists of coordinate pairs in a pandas DataFrame
2) use df.apply() to turn each list of coords in to a patch and add to an
axes object
I'm sure you know this,
As the error message says, the problem is on Line 14:
print f.variables['WWSWHGT_P0_L1_GLL0']
a KeyError means that you tried to access an element that is not in a
dictionary. In this case f.variables is the dictionary and '
WWSWHGT_P0_L1_GLL0' is the element.
Did your data and script come of
I think you posted the same image in both cases. Without seeing the
problematic image, I can only guess that it's caused by the resolution of
your data.
On Thu, Jan 9, 2014 at 7:58 AM, A Short surfersh...@hotmail.com wrote:
Hi Paul,
Thanks for your reply, I managed to fix it after I realised
What I'm saying is that your top image and bottom image are identical and I
don't see any white boxes in either. What is the resolution of the grid?
-paul
On Thu, Jan 9, 2014 at 11:59 AM, A Short surfersh...@hotmail.com wrote:
ok the file im using is this multi_2.glo_30m.t06z.grib2 from here
How does it look if you remove the calls to `m.drawcoastlines()` and `
m.fillcontinents()`?
On Thu, Jan 9, 2014 at 1:05 PM, A Short surfersh...@hotmail.com wrote:
Thats strange they look different on this browser. Hopefully the one below
youll see what i mean
Thanks
Looks like it's just a coarse resolution to me. Try showing the data as an
image with no iterpolation.
On Thu, Jan 9, 2014 at 3:26 PM, A Short surfersh...@hotmail.com wrote:
Ive also changed the grib file from multi_2.glo_30m.t06z.grib2 to
nww3.t12z.grib.grib2 i still cant figure out which is
Not quite sure exactly what you need to do, but it sounds like separate
calls to `plot` for each quadrilateral will do the trick.
-paul
On Wed, Feb 5, 2014 at 4:57 PM, Pedro Marcal pedrovmar...@gmail.com wrote:
I don't know how to separately plot the quadrilaterals after plotting each
of them
It's not the wrong place, per se. But I think if you created an issue on
the github repository, it's less likely to get lost in the ether.
https://github.com/matplotlib/basemap
On Wed, Feb 12, 2014 at 7:17 PM, Roman Olson roman.ol...@unsw.edu.auwrote:
Hi All,
I am new to this list so I
Hey Gabriele,
See this example here:
http://stackoverflow.com/questions/14762181/adding-a-y-axis-label-to-secondary-y-axis-in-matplotlib/14762601#14762601
On Fri, Feb 14, 2014 at 12:32 PM, Gabriele Brambilla
gb.gabrielebrambi...@gmail.com wrote:
Hi,
I'm trying to plot two functions on the
Adam,
Look into the seaborn project:
http://nbviewer.ipython.org/github/mwaskom/seaborn/blob/master/examples/aesthetics.ipynb
it's easy enough to define your own color palettes or select existing ones.
-paul
On Mon, Feb 17, 2014 at 11:41 AM, Adam Hughes hughesada...@gmail.comwrote:
I'm
(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.)
lotgr.canvas.draw()
thanks
Gabriele
2014-02-17 14:46 GMT-05:00 Paul Hobson pmhob...@gmail.com:
Adam,
Look into the seaborn project:
http://nbviewer.ipython.org/github/mwaskom/seaborn/blob/master/examples/aesthetics.ipynb
it's easy
-02-17 20:57 GMT-05:00 Paul Hobson pmhob...@gmail.com:
Untested, of course, but I would do something like this:
import matplotlib.pyplot as plt
import seaborn
N = len(As)
myPallette = seaborn.color_palette(skyblue, N) # use the name of any
mpl colormap here
seaborn.set_color_pallette
It appears that you have two different version of python installed (Apple's
2.7.3 and python.org's 2.7.5). You have to install all third-party packages
to the correct one. It appears pip in acting on Apple's python.
On Fri, Feb 21, 2014 at 2:08 PM, Timothy Duly timdu...@gmail.com wrote:
Hello,
You're not adding your subplot to an existing figure, so a new one is
created.
put fig = plt.figure(...) at the top of your script and replace axii =
plt.subplot(numalp, numobs, axisNum) with axii = fig.add_subplot(numalp,
numobs, axisNum)
On Sat, Feb 22, 2014 at 5:28 PM, Gabriele Brambilla
Sounds like you want to use pandas, not numpy.
import pandas
import matplotlib.pyplot as plt
df = pandas.read_csv('myfile.txt', sep='\t')
plt.hist(data['A'], bins=30)
...should do it for you.
On Fri, Feb 28, 2014 at 11:06 AM, AR12 aarthi.re...@gmail.com wrote:
Hi,
I have a csv file where
Olga Botnivik is doing some work with these types of figures in her fork of
the seaborn project.
Example here: http://nbviewer.ipython.org/gist/olgabot/8341784
Link to the PR in github: https://github.com/mwaskom/seaborn/pull/73
Those might be a good place to start.
On Wed, Mar 5, 2014 at
Gabriele,
I'm confused. I only see 1 series in each subplot. Could you trim your
example down into some code that we can copy, paste, and run? A more
thorough description of the problem might help too.
-p
On Mon, Mar 10, 2014 at 9:39 AM, Gabriele Brambilla
gb.gabrielebrambi...@gmail.com wrote:
Paul Hobson pmhob...@gmail.com:
Gabriele,
I'm confused. I only see 1 series in each subplot. Could you trim your
example down into some code that we can copy, paste, and run? A more
thorough description of the problem might help too.
-p
On Mon, Mar 10, 2014 at 9:39 AM, Gabriele Brambilla
Pål,
Matplotlib already has a jet colormap and has moved away from using it as
the default for the very reasons listed in the first paper you site. How is
your jet colormap different? Can you provide a comparison with the existing
colormap? Does it overcome the drawbacks listed in the Sandia
1 - 100 of 153 matches
Mail list logo