No - not the 'widths' kwarg. I want something that *looks* like the boxplot,
but for which I will have control of setting the ranges delimited by the box
and delimited by the whiskers (in the vertical dimension, not the horizontal
dimension). I resorted to hacking something from the existing code (
This looks correct. I went and look at the animation examples and they do
something similar.
Thx
-- Forwarded message --
From: Stephen George
Date: Tue, Feb 23, 2010 at 6:28 PM
Subject: Re: [Matplotlib-users] hoe to update a plot
To: Matplotlib Users
C M wrote:
> On Tue, Feb 2
C M wrote:
> On Tue, Feb 23, 2010 at 7:00 PM, Mathew Yeates wrote:
>
>> Hi
>> I am using gtk and displaying a plot in a FigureCanvas. In response to an
>> event, I want to update the plot with new data.
>>
>> e.g.
>> self.fig = Figure(figsize=(5,5), dpi=100)
>> self.ax = fig.add_subplot(111)
>>
On Tue, Feb 23, 2010 at 7:00 PM, Mathew Yeates wrote:
> Hi
> I am using gtk and displaying a plot in a FigureCanvas. In response to an
> event, I want to update the plot with new data.
>
> e.g.
> self.fig = Figure(figsize=(5,5), dpi=100)
> self.ax = fig.add_subplot(111)
> ax.plot(data[0,0:,0],
>
>
Hi
I am using gtk and displaying a plot in a FigureCanvas. In response to an
event, I want to update the plot with new data.
e.g.
self.fig = Figure(figsize=(5,5), dpi=100)
self.ax = fig.add_subplot(111)
ax.plot(data[0,0:,0],
canvas = FigureCanvas(fig)
canvas.set_size_request(500,500)
def on_so
Hi! I'm trying to loop through all the built-in colormaps, applying each to an
image before printing it to a file, then moving on to the next one.
>>> from matplotlib import cm
>>> for cmap in dir(cm): # cmap in cm doesn't work 'cause cm is a module
>>>ax.imshow(image, cmap)
>>>canvas.pr
On Tue, Feb 23, 2010 at 5:04 PM, Ariel Rokem wrote:
> Hi -
>
> yes - but I want something that looks like the generic boxplot, but in
> which I can control where the edges of the boxes are placed what the sizes
> of the whiskers are. A combination of errorbar and bar, with this
> appearance, if y
Hi -
yes - but I want something that looks like the generic boxplot, but in which
I can control where the edges of the boxes are placed what the sizes of the
whiskers are. A combination of errorbar and bar, with this appearance, if
you will.
Cheers - Ariel
On Tue, Feb 23, 2010 at 2:49 PM, Gökha
It is best to create a figure of a right size in the first place.
If this cannot be done, try something like below.
dpi = 80
fig=figure(1, dpi=dpi)
ax = axes((0,0,1,1))
ax.set_aspect(1)
from matplotlib.transforms import TransformedBbox, Affine2D
w, h = fig.get_size_inches()
bbox = TransformedBbo
On Tue, Feb 23, 2010 at 3:02 PM, Ariel Rokem wrote:
> Hi - more generally, is there any way to control the location of the median
> line, the vertical size of the box and the vertical location of the
> whiskers?
>
> Thanks - Ariel
>
>
Aren't those generically calculated from the data?
--
Gökha
This seems to be a bug and I recommend you to file a bug.
This happens because Axis.set_ticklabels method only changes the
attributes of left (or bottom) tick labels.
Meanwhile, try
for t in colorbar.ax.get_yticklabels():
t.set_color("w")
-JJ
On Tue, Feb 23, 2010 at 11:03 AM, Jim Vickroy w
See
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg13203.html
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg13204.html
-JJ
On Tue, Feb 23, 2010 at 9:22 AM, Sebastian Rhode
wrote:
> Hi,
>
> has anyone a good idea how to interactively display the x
markers are vector paths, so I don't think you can use images as markers.
But you may overlay your images using imshow. The tricky part is to
figure out the extents of the image.
You may use OffsetImage
http://matplotlib.sourceforge.net/trunk-docs/examples/pylab_examples/demo_annotation_box.ht
On Tue, Feb 23, 2010 at 5:43 AM, Kornél Jahn wrote:
> Hi all!
>
> I am preparing a journal article and the figures should have a fixed width
> of 3 inches, with as thin white border around as possible. The figure does
> an imshow with equal axes:
> My problem is: I do not know in advance the heigh
Try
ax = subplot(111, frame_on=False)
ax.xaxis.set_visible(False)
ax.yaxis.set_visible(False)
table(cellText=cellText, colLabels=colLabels)
-JJ
On Tue, Feb 23, 2010 at 4:06 AM, HUSSAIN BOHRA wrote:
> Hi,
>
> Can any one tell me, How can I draw only a table in a figure (without XY
> Cordinates
On 2/23/2010 3:44 PM, Friedrich Romstedt wrote:
> http://www.friedrichromstedt.org/index.php?m=186
>
It's definitely nice to have examples around, although I won't
look at anything that's not explicitly BSD (or MIT) licensed.
Somebody on the SciPy list (I'm forgetting at the moment)
was workin
The question has been answered I think in the thread
"Graph gains a blank space at the right hand side"
just some seconds ago.
Am I wrong?
Friedrich
--
Download Intel® Parallel Studio Eval
Try the new software tools for
Hi - more generally, is there any way to control the location of the median
line, the vertical size of the box and the vertical location of the
whiskers?
Thanks - Ariel
On Tue, Feb 23, 2010 at 11:32 AM, wrote:
>
> # ~~~
> From: Ben Axelrod [mailto:baxel...@coroware.com]
> Sent:
On Mon, Feb 22, 2010 at 11:00 AM, Geoff Bache wrote:
> So I guess I have two questions.
> 1) Is this a bug? It certainly feels like one...
> 2) Is there a workaround / what should I do instead?
>
Try
axessubplot2.autoscale_view(tight=True)
Otherwise, you need to manually adjust xlim and ylim.
I would like to know whether the following project of mine:
http://www.friedrichromstedt.org/index.php?m=186
is useful or not, because I don't know.
I made an attempt to find something like what I tried some time ago,
but I failed.
Friedrich
I'm attempting to output an image with a predictable bounding box so
that it can be placed into a KML document and be correctly
georeferenced.
Essentially I need a PNG that has NO labeling and the size of the
image be exactly the size of the plot bounding box and no more, no
less.
I can get exact
# ~~~
From: Ben Axelrod [mailto:baxel...@coroware.com]
Sent: Tuesday, February 23, 2010 9:31 AM
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] boxplot bug
I found an inconsistency with how boxplots are rendered between version 0.99.1
and the svn head. Se
Tornes, Ivan E wrote:
> We have a very large data set that we are trying to plot in matplotlib.
> We found that when you have multiple data points per pixel the backend
> does not always pick the point with the largest value to draw. If you
> resize the plot window it changes what is being sho
We have a very large data set that we are trying to plot in matplotlib. We
found that when you have multiple data points per pixel the backend does not
always pick the point with the largest value to draw. If you resize the plot
window it changes what is being shown on the figure. Narrow fea
I found an inconsistency with how boxplots are rendered between version 0.99.1
and the svn head. See attached images. I have never seen a boxplot cross back
on itself like this before. Is this the expected behavior?
Thanks,
-Ben
Ben Axelrod
Robotics Engineer
(800) 641-2676 x737
[cid:03124281
Bruce Ford wrote:
> I'm needing to keep two copies of a figure, with the properties
> different on one copy.
>
> However with logic like below, both copies remain the same regardless:
>
> #I want one copy with the defaul background and one to be transparent...
>
> imgname = GenFilename(20)+".pn
On 2/23/2010 12:03 PM, Bruce Ford wrote:
> Is there a way to make a true separate figure that
> will allow me to alter properties in the new copy without altering the
> original.
>
def make_my_figure():
fig = plt.figure()
...
return fig
fig1 = make_my_figure()
fig2 = make_my_fi
Hi,
I cannot kill a plot by "ctrl+c" in a terminal (sending the SIGINT) when
using the Qt4Agg backend. When using GTKAgg it works fine...
What could be wrong? I need that.
Thanx!
--
Download Intel® Parallel Studio Eval
T
I'm needing to keep two copies of a figure, with the properties
different on one copy.
However with logic like below, both copies remain the same regardless:
#I want one copy with the defaul background and one to be transparent...
imgname = GenFilename(20)+".png"
imgsrc = "../dynamic/"+i
Hello,
I'm (unsuccessfully) trying to generate a figure (with a labeled
colorbar) having a black background.
Here is the code.
_purpose_ = 'demonstrate capability to create PNG with black background
including labeled color bar'
_author_ = 'jim.vick...@noaa.gov'
import numpy # http://
Gentlemen!
Thanks a lot for your help.
This works now for me (with and without the norm in the colorbar() call)
Best,
Jan
On Tue, Feb 23, 2010 at 3:47 PM, John Hunter wrote:
> On Mon, Feb 22, 2010 at 6:28 PM, Eric Firing wrote:
> > Yes. You are looking at ColorbarBase, which does not ha
Hi,
I think there's an issue of axes autoscaling in y when plotting histograms
with specified bins, eg.
from pylab import *
bins = linspace(-5,5,100)
hist(randn(1000), bins=bins,
histtype='step', ec='r')
hist(randn(1), bins=bins,
histtype='step', ec='g')
show()
Note that th
On Mon, Feb 22, 2010 at 6:28 PM, Eric Firing wrote:
> Yes. You are looking at ColorbarBase, which does not have an associated
> mappable. The derived Colorbar class does grab the cmap and norm from the
> mappable used in the initialization. Is this somehow not working? Did you
> really need to
On Tue, Feb 23, 2010 at 4:12 AM, Jan Strube wrote:
> Hi John,
> thanks for keeping at it. I have updated from svn
> But this script
> File
> "/Users/Jan/PYTHON/lib/python2.6/site-packages/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg/matplotlib/colorbar.py",
> line 278, in _config_axe
Hi,
has anyone a good idea how to interactively display the xy coordintes (as
whole numbers) and the pixel intensity using the mouse cursor. Here is the
code snippet:
...
fig = plt.figure()
ax1 = fig.add_subplot(111)
channel_select = 1
p = imread(filename) # normally I use TIFF file
if (p.ndim >
I would like to use custom symbols (markers) on both line charts and scatter
charts. The symbols I would like to use are currently stored in PNG files.
Is there a way to convert these images to markers? Symbols are pretty simple
and contain only one colour, and the background should be transparent.
Hi all!
I am preparing a journal article and the figures should have a fixed width
of 3 inches, with as thin white border around as possible. The figure does
an imshow with *equal* axes:
My problem is: I do not know in advance the height of my figure to specify
figsize. The height should vary so t
Hi,
I'm using the Python(x,y) distribution which comes with matplotlib for
Windows. My OS is Windows XP with all updates and service packs on an
AMD Athlon 2600+ PC with ATI Radeon 9600 graiphics card.
Python will work fine for anything that doesn't import the pylab
component (I can import matplo
Erik Tollerud-2 wrote:
>
> I'm curious if anyone knows a good way to embed pydot
> (http://code.google.com/p/pydot/) graphs (or really, any
> graphviz-style graphs) inside matplotlib somehow.
>
The closest thing is probably NetworkX (http://networkx.lanl.gov/index.html)
and PyGraphviz (http:/
Hi John,
thanks for keeping at it. I have updated from svn
But this script
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import LogFormatter
from matplotlib import colors
class LogFormatterHB(LogFormatter):
def __call__(self,
Hi,
Can any one tell me, How can I draw only a table in a figure (without XY
Cordinates)
Please find my code below :
*# do this before importing pylab or pyplot
import matplotlib
matplotlib.use('Agg')
from matplotlib.pyplot import figure
from matplotlib.table import table
from pylab import *
f
David Goldsmith wrote:
> I've searched and searched the online docs...please help.
>
> DG
>
If I understand your question correctly you probably need to look at
http://matplotlib.sourceforge.net/api/ticker_api.html#tick-formatting
ax.xaxis.set_major_formatter( xmajorFormatter )
ax.xaxis.set_min
42 matches
Mail list logo