On 28 November 2012 15:28, Vilson Vieira vil...@void.cc wrote:
Hi,
I'm using matplotlib to draw some generative art works. I'm trying to hide
the axis but when I do that the lines that are over the axis are hidden as
well, like this example: http://i.imgur.com/hKqMi.png
The code I'm using
On 18 March 2012 04:39, klo uo klo...@gmail.com wrote:
Assuming IPython in pylab mode:
a = [0.1, 0.2, 0.1]
errorbar(arange(3), a, yerr=a-sum(a)/len(a), fmt='ro')
Result MPL output clips limit values in two different ways:
1. If GTK backend is used both left and right sides are
On 18 March 2012 08:43, klo uo klo...@gmail.com wrote:
On Sun, Mar 18, 2012 at 1:07 PM, Angus McMorland amcm...@gmail.com wrote:
The xlim command can be used to set the x limits. For example:
xlim(-.5, 2.5)
will prevent the points lying on the axis boundaries for your case.
Thanks
On 2 February 2012 08:32, Fabien Lafont lafont.fab...@gmail.com wrote:
Hello!
How can I zoom exactly on the same region on two different subplots at
the same time. This option is enable when I use plotfile but not if I
use plot, and subplots?
Create the first axes object, then when you
On 25 September 2011 06:59, fdu.xia...@gmail.com fdu.xia...@gmail.com wrote:
Dear all,
Heatmap (like those on the page
http://www2.warwick.ac.uk/fac/sci/moac/students/peter_cock/r/heatmap/)
is a frequently used type of image in microarray data analysis. However,
it seems there are no
On 3 July 2011 10:33, Wang Jun daxi...@gmail.com wrote:
Hello, Angus!
For this method, if I want to draw a colorbar to indicate the specific
values
for the colors, what should I do? the colorbar() in pylab is not waorking
for
this case.
Use:
plt.colorbar(ax.collections[0])
after the call
On 1 July 2011 14:35, Francois Lemery francois.lem...@gmail.com wrote:
Hello,
I am interested in producing a 4 dimensional plot to represent some data.
I picture this as looking like a normal 3d scatter plot with datapoints
varying in a color scale which depends on a fourth column of data.
On 27 March 2011 20:47, Warren Weckesser warren.weckes...@enthought.com wrote:
I'm using matplotlib 1.0.1. I have the following simple script to plot a
surface:
-
from numpy import linspace, sin, cos, meshgrid
from matplotlib.pyplot import figure, show, xlabel, ylabel
from matplotlib
Thanks Paul,
On 24 March 2011 19:23, Paul Ivanov pivanov...@gmail.com wrote:
I think you can get the desired functionality with gridspec
alone. Take a look at
doc/users/plotting/examples/demo_gridspec06.py which you can find
here
On 25 March 2011 07:31, jford14685 jford14...@gmail.com wrote:
I am a newbie Python programmer trying to make 3d barplots like
http://matplotlib.sourceforge.net/examples/mplot3d/bars3d_demo.html this
one on the Matplotlib site.
When I run the demo source (python bars3d_demo.py) it works fine.
Hi all,
I'm trying to get a grid of grids of plots, where the inner grids have
no inter-plot spacing. Is there a recommended way to go about this?
I'm aware AxesGrid can do the no-spacing requirement, but it's not so
obvious that it can be used to nest one grid within another, as
gridspec can.
Hi all,
I've created a custom projection for drawing Lambert plots on two
adjacent hemispheres, copied closely from the
custom_projection_example [1], and attached here.
The basics are working I think, but the axes objects have too much
whitespace around them, and I can't immediately work out
On 27 August 2010 09:35, xyz mit...@op.pl wrote:
Hello,
I would like to draw the following triangle:
A
/ \
5 / \ 5
/ \
/ \
BC
4
How is it possible to draw the above triangle with Matplotlib and are
there any examples?
How
On 28 July 2010 15:25, Waléria Antunes David waleriantu...@gmail.com wrote:
Hello all,
Well, my problem is ... My current code is as follow bellow:
http://pastebin.com/7p2N5d64
Hi Waléria,
We can't easily fix your problem without knowing what data f and
Sserie contain. It would help us to
On 26 July 2010 12:47, Waléria Antunes David waleriantu...@gmail.com wrote:
My code like this in django: http://pastebin.com/nzM5jvuc
Are you perhaps suffering from integer division? How about dividing by
1000.0, instead of 1000?
Angus.
i'm lost
On Mon, Jul 26, 2010 at 1:42 PM,
to do this is 1/1000.0 (or 1/1000. for short).
I hope that helps,
Angus.
On Mon, Jul 26, 2010 at 1:57 PM, Angus McMorland amcm...@gmail.com wrote:
On 26 July 2010 12:47, Waléria Antunes David waleriantu...@gmail.com
wrote:
My code like this in django: http://pastebin.com/nzM5jvuc
Are you
Hi all,
I'm trying to install matplotlib from svn. I have two versions of
numpy on my computer: one installed by the Ubuntu package manager in
/usr/lib and one installed from source in /usr/local/lib which takes
precedence based on the order of my PYTHONPATH. I'm trying to install
the latest
On 7 July 2010 14:00, John Hunter jdh2...@gmail.com wrote:
On Wed, Jul 7, 2010 at 12:12 PM, Eric Firing efir...@hawaii.edu wrote:
On 07/07/2010 04:25 AM, Angus McMorland wrote:
Hi all,
I'm trying to install matplotlib from svn. I have two versions of
numpy on my computer: one installed
On 1 June 2010 19:05, Howard Sun h...@nvidia.com wrote:
Sorry for the newbie question, how do you plot one x with multiple ys. In
below data, x column is followed by 5 y columns:
Many thanks!
You can make an x vector and a y array, so that the first dimension of y is
the same length as x:
On 31 May 2010 19:49, rugspin piet_par...@web.de wrote:
I have a small problem how to convert an image from matplotlib to PIL
right now doing somthing like this:
--
from scipy import *
from pylab import *
from PIL import Image
a =
On 31 May 2010 23:17, Angus McMorland amcm...@gmail.com wrote:
On 31 May 2010 19:49, rugspin piet_par...@web.de wrote:
I have a small problem how to convert an image from matplotlib to PIL
right now doing somthing like this:
--
from scipy import
Hi all,
I'm trying to use an AxesGrid to plot 5 images and a color bar. I can't work
out how to get labels on the colorbar, and none of the examples shows this.
Can anyone help? I presume this is a simple thing, once one knows the
correct command.
I'm creating the grid using the following code
On 24 March 2010 10:05, Nils Wagner nwag...@iam.uni-stuttgart.de wrote:
Hi all,
does anybody know how to draw a permille sign in ylabel ?
ax.set_ylabel(u'blah \u2030')
--
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh
On 24 March 2010 17:33, Nils Wagner nwag...@iam.uni-stuttgart.de wrote:
Hi all,
how can I change the output format of yticks from 100
to 1.e6 ?
I'm not sure if there's an easier way still, but this works:
from matplotlib.ticker import Formatter
class SciFormatter(Formatter):
def
Hi all,
I'm playing around with plotting with the Lambert transform. I want to
only plot one hemisphere at a time.
I see that if I create the appropriate axes:
ax = plt.subplot(111, projection='lambert')
the resulting axis object's ax.get_xlim() and ax.get_ylim() methods
give the limits in
On 24 February 2010 13:36, AG computing.acco...@googlemail.com wrote:
Hi
How do I set up my matplotlib.pyplot code so that the data for the
x-axis is plotted beginning at 1 not the default 0. To illustrate:
I have a set of time trials and error probability calculations. Trials
are x and
Hi all,
I've recently implemented a simple equal area (Lambert) projection in
mpl, using two polar Axes (to draw each hemisphere), and this
currently works fine to draw lines and points, since I'm transforming
the points in my own code, from 3d-polar to 2d-projected-polar
co-ordinates, and then
2009/7/23 Nicolas nicolas.faucher...@gmail.com:
Hi all
I was wondering if anyone managed to find / install Basemap on a i386
machine running ubuntu 9.04 (Jaunty Jackalope) ...
I've installed the debs through synaptic, and I've tried without
success to compile
Basemap (0.99), with failure
Hi guys,
I'm trying to use sphinx and your mathmpl extension to document some
of my own code, but I'm getting an error saying, in the simplest
instance:
Warning: Could not render math expression $alpha$
Is mathmpl dependent on a particular version of sphinx? I'm using
0.4.2-1 from debian at the
Hi Mike et al,
Thanks for the reply.
2008/12/15 Michael Droettboom md...@stsci.edu:
You don't need the $. In fact, an unescaped $ in a math expression is a
syntax error.
Admittedly, the feedback about this could be better than just couldn't
render. I'll look at passing more information
Hi Mike,
2008/12/15 Michael Droettboom md...@stsci.edu:
Angus McMorland wrote:
I think I've copied the usage suggested by the 'writing mathtext' page
in the mpl documentation (i.e. looking at its rst source [1]). That is
to say, the appearance of $ and the lack of \ are produced
2008/11/22 Zane Selvans [EMAIL PROTECTED]:
Does anybody know of an easy way to take two intersecting curves, A(x) and
B(x), and fill the areas between them only when A(x) B(x) and not when
A(x) B(x)?
Looks like this example from the new shiny matplotlib website should help:
2008/10/24 Lorenzo Isella [EMAIL PROTECTED]:
Dear All,
I am running Debian testing on my box. I had not used Python for about
a couple of weeks (during which I updated my system regularly) only to
find out that today I have a trouble if I try to import pylab. See
below what happens
In [1]:
Hi Mathew,
2008/10/13 Mathew Yeates [EMAIL PROTECTED]
Okay, I've gotten this far. I have a Figure and I think I can change the
formatting of the values displayed in the toolbar by setting taking the
X axis and setting the function
format_xdata
to something of my own (something that computes
And forwarded to the list... forgot to hit reply to all.
-- Forwarded message --
From: Angus McMorland [EMAIL PROTECTED]
Date: 2008/10/13
Subject: Re: [Matplotlib-users] how do I get my axis
To: Mathew Yeates [EMAIL PROTECTED]
2008/10/13 Mathew Yeates [EMAIL PROTECTED]
Thanks
Hi all,
This is just a head's-up for those using debian and who upgrade
regularly. There's a problem with the latest debian package to hit
testing: 0.98.1-1, which is currently unusable, throwing up the error:
ImportError: /usr/lib/python2.5/site-packages/matplotlib/nxutils.so:
undefined symbol:
Hi all,
I'm trying to plot a colour bar for a scatter plot, and set the
maximum value of the plot to something arbitrary. At the moment it
always comes up as 255. How can I change this?
ax = plt.gca()
pts = ax.scatter(coords[:,0], coords[:,1], c=np.linspace(0,1,n_pts), s=16,
Hi all,
I sometimes find myself wanting to plot a series of lines using
axhline or axvline. Is there a mechanism to do this that I'm missing,
or would it be difficult to support the positional parameter being an
array of values at which to draw each line?
Angus.
--
AJC McMorland, PhD candidate
2008/6/27 Angus McMorland [EMAIL PROTECTED]:
Hi all,
I sometimes find myself wanting to plot a series of lines using
axhline or axvline. Is there a mechanism to do this that I'm missing,
or would it be difficult to support the positional parameter being an
array of values at which to draw
2008/4/28 G Jones [EMAIL PROTECTED]:
Hello,
I appologize for a slightly off topic post, but I'm sure someone here
knows the answer.
You're probably right, and people are pretty happy to answer things
here in general. You're more likely to get traction for this question
on the IPython mailing
On 22/01/2008, Søren Nielsen [EMAIL PROTECTED] wrote:
I'm looking for a way to do masking of an Image.. I need to be able to make
a circle / box or a user made polygon on an image using the mouse and
retrieve the pixellocations of all pixels inside the masked area.. (which
will then be
Hi Søren,
I've put this back on the list in case it's useful to anyone else, or
if there are better suggestions or improvements around. Hope you don't
mind.
On 22/01/2008, Søren Nielsen [EMAIL PROTECTED] wrote:
Yeah i'd like to see your code if I can..
import numpy as n
def get_poly_pts(x, y,
On 25/11/2007, Rich Shepard [EMAIL PROTECTED] wrote:
On Sat, 24 Nov 2007, Angus McMorland wrote:
Great. Hopefully this correction will make things even more clear.
While the functions and equations are now clear, I get an error that was
present in matplotlib-0.87, but which should
On 25/11/2007, Rich Shepard [EMAIL PROTECTED] wrote:
On Sun, 25 Nov 2007, Angus McMorland wrote:
I'm not completely sure, but I suspect that this is an implementation bug,
rather than a version bug, particularly because the line in question isn't
involving matplotlib at all. If you post
On 24/11/2007, Rich Shepard [EMAIL PROTECTED] wrote:
On Fri, 23 Nov 2007, Angus McMorland wrote:
For parsimony, I think you're probably best off just using the Gaussian
equation:
def fwhm2k(fwhm):
'''converts fwhm value to k (see above)'''
return fwhm/(2 * n.sqrt( n.log( 2
On 24/11/2007, Rich Shepard [EMAIL PROTECTED] wrote:
On Sat, 24 Nov 2007, Angus McMorland wrote:
fwhm is the full-width at half the maximum height, i.e. it's the
difference between the two values of x when:
|r - c| = 0.5
Looking at my reply, I realised this was rubbish - sorry about
On 01/11/2007, Jose Gomez-Dans [EMAIL PROTECTED] wrote:
Hi,
Some colleagues have sent some plots which they generated using IDL
(boo!!! hiss!! :D), and they look quite dissimilar to my matplotlib
ones. I would like to mimic their layout as much as possible, which so
far is a success. The only
Sorry for the double sending, Giorgio. I got bitten by the Reply-To
bug for this list.
-- Forwarded message --
From: Angus McMorland [EMAIL PROTECTED]
Date: 30 Oct 2007 09:27
Subject: Re: [Matplotlib-users] (no subject)
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
On 23/10/2007
Hi devs,
This is a quick report of a bug in 0.90.1 (via debian testing
package). Sorry, I'm not sure if this is still present in svn, and I'm
keen to keep to the debian packages for now, so if it is already fixed
then feel free to ignore.
Bug is repeatably demonstrated by:
import pylab as p,
Hi Eric,
On 23/08/07, Eric Emsellem [EMAIL PROTECTED] wrote:
thanks a lot for this feedback!
Your example is quite nice indeed. However there is something I may not
have fully understand.
If I use the example you sketch, I of course need to call the displayer
class (right?), by doing
Hi Eric,
On 23/08/07, Eric Emsellem [EMAIL PROTECTED] wrote:
Hi
sorry to post this again but all my attempts to solve the matplotlib
problem below failed and I desperately need this to progress.
I would like to use mpl_connect and disconnect to examine a series of 2d
arrays in turn (with a
On 22/08/07, Geoffrey Zhu [EMAIL PROTECTED] wrote:
On 8/20/07, Angus McMorland [EMAIL PROTECTED] wrote:
On 21/08/07, Geoffrey Zhu [EMAIL PROTECTED] wrote:
Hi Everyone,
I just started to use pylab, and there are two issues I can't figure
out a way to get around.
1. show() does
On 21/08/07, Geoffrey Zhu [EMAIL PROTECTED] wrote:
Hi Everyone,
I just started to use pylab, and there are two issues I can't figure
out a way to get around.
1. show() does not return until I close the plot window. This makes it
impossible to show multiple plots at the same time. How can I
On 07/08/07, fred [EMAIL PROTECTED] wrote:
Angus McMorland a écrit :
Since all sorts of data can be displayed in am mpl window (e.g. a
plot, a contour...) you have to tell it how to access the correct
scalar value to display. You could do this with the
motion_notify_event. Register
Hi fred,
On 04/08/07, fred [EMAIL PROTECTED] wrote:
Well, running mpl examples (say image_demo.py),
you can see the point coordinates under the pointer.
Good point ;-)
I would like to have the scalar value under the pointer to be displayed
too.
How could I do this ?
Since all sorts of
Hi Armando,
On 18/07/07, Armando Serrano Lombillo [EMAIL PROTECTED] wrote:
Hello, I have a question.
Let's say I have the following data:
[1,3,6,1,2,0,0,0,0,1,4,7,9,4,2,4,6,0,0,0,0,0,0,0,0,0,0,0,0,1,3,5,6,7,8]
which I want to plot, but I want to omit the zeros, so I would like to do
Hi Trevis,
snip
On 12/06/07, Trevis Crane [EMAIL PROTECTED] wrote:
So, I figured maybe if I zoomed in then it'd be easier to select the desired
point. The problem is that after zooming/panning, the mouse cursor changes
and my click events are no longer recognized as such. Furthermore, I
Hi all,
Did any progress get made beyond this discussion below? I'm trying to
get contourf3D working, using latest svn, and it still seems to be
out-of-order. Contour3D works, but I get exactly the same errors (and
went exactly the same route trying to fix them) as Matthew.
On 13/01/07, Eric
Hi Eric,
On 30/12/06, Eric Emsellem [EMAIL PROTECTED] wrote:
Hi,
I am writing a small module to easily load images and interact with
them.
Sorry for getting to this thread late - back from a quick holiday now.
I have written an image browser module that does what it sounds like
you're trying
On 25/11/06, Martin Richter [EMAIL PROTECTED] wrote:
Hello everyone,
although I thought this topic had been discussed earlier I wasn't able to find
it in the archives. So please forgive me if I'm repeating something. Here the
question I'm not able to answer on my own:
We really shoud wiki
On 10/11/06, Dan Karipides [EMAIL PROTECTED] wrote:
Fernando,
Thanks, this is exactly what I need.
BTW, I think I missed it in the search because the archive here:
http://sourceforge.net/mailarchive/forum.php?forum_id=33405
doesn't show anything more recent that 10/02/2006. I'm not sure
61 matches
Mail list logo