I would also love to have this implemented. That is being able to not only
set the colors, but also the alpha values as an array.
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/scatter-plot-individual-alpha-values-tp21106p39671.html
Sent from the matplotlib - users ma
On Wed, Aug 8, 2012 at 3:34 PM, Gustavo Goretkin wrote:
> I can use the scatter function to plot an array of points and give a
> corresponding array of colors to set those points. Is it possible to
> do the same thing with alpha values?
>
> Right now, I'm restoring to calling plot with an 'o' mar
On Wed, Aug 08, 2012 at 05:22:49PM -0400, Tony Yu wrote:
> On Wed, Aug 8, 2012 at 4:34 PM, Gustavo Goretkin > wrote:
>
> > I can use the scatter function to plot an array of points and give a
> > corresponding array of colors to set those points. Is it possible to
> > do the same thing with alpha
On Wed, Aug 8, 2012 at 4:34 PM, Gustavo Goretkin wrote:
> I can use the scatter function to plot an array of points and give a
> corresponding array of colors to set those points. Is it possible to
> do the same thing with alpha values?
>
> Right now, I'm restoring to calling plot with an 'o' mar
I can use the scatter function to plot an array of points and give a
corresponding array of colors to set those points. Is it possible to
do the same thing with alpha values?
Right now, I'm restoring to calling plot with an 'o' marker for each
individual point, which is slow.
M
Subject: Re: [Matplotlib-users] scatter plot with constant x
On Tue, Jun 5, 2012 at 11:53 AM, Ulrich vor dem Esche <
ulrich.es...@googlemail.com> wrote:
Hey! :o)
This should be simple, but i cant manage: I need to plot many dots with
the same x, like
plt.plot([3,3,3,3],[60,80,120,180],
> From: Eric Firing [mailto:efir...@hawaii.edu]
> Sent: Wednesday, June 06, 2012 13:41
> To: matplotlib-users@lists.sourceforge.net
> Subject: Re: [Matplotlib-users] scatter plot with constant x
>
> On 06/06/2012 06:42 AM, Ethan Gutmann wrote:
> >> ...
&
On Jun 6, 2012, at 11:41 AM, Eric Firing wrote:
> Since we end up needing float64 anyway:
>
> In [3]: %timeit l=np.empty(1,dtype=np.float64); l.fill(3)
> 10 loops, best of 3: 14.1 us per loop
nice, fill and empty seem to be responsible for about half the speed up each,
good tools to kno
On 06/06/2012 06:42 AM, Ethan Gutmann wrote:
>> ...
>> No, but you can do this:
>>
>> plt.plot([3] * 4, [60, 80, 120, 180], ...)
>
> This started from a simple enough question, but it got me thinking about what
> the fastest way to do this is (in case you have HUGE arrays, or many loops
> over th
On 06/06/2012 12:54 PM, Ethan Gutmann wrote:
> On Jun 6, 2012, at 10:49 AM, Michael Droettboom wrote:
>> Interesting result. Note, however, that matplotlib will eventually turn
>> all data arrays into float64 at rendering time, so any speed advantage
>> to using integers will be lost by the subseq
On Jun 6, 2012, at 10:49 AM, Michael Droettboom wrote:
> Interesting result. Note, however, that matplotlib will eventually turn
> all data arrays into float64 at rendering time, so any speed advantage
> to using integers will be lost by the subsequent conversion, I suspect.
I don't think it d
On 06/06/2012 12:42 PM, Ethan Gutmann wrote:
>> ...
>> No, but you can do this:
>>
>> plt.plot([3] * 4, [60, 80, 120, 180], ...)
> Using int16, int32, float32 get progressively slower to the default float64
> case listed on line [5], changing the datatype in other methods doesn't
> result in near
> ...
> No, but you can do this:
>
> plt.plot([3] * 4, [60, 80, 120, 180], ...)
This started from a simple enough question, but it got me thinking about what
the fastest way to do this is (in case you have HUGE arrays, or many loops over
them). This may be old news to some of you, but I though
On Tue, Jun 5, 2012 at 11:53 AM, Ulrich vor dem Esche <
ulrich.es...@googlemail.com> wrote:
> Hey! :o)
> This should be simple, but i cant manage: I need to plot many dots with
> the same x, like
>
> plt.plot([3,3,3,3],[60,80,120,180],'+',markersize=8,mec='k')
>
> The array for x values is silly,
Hey! :o)
This should be simple, but i cant manage: I need to plot many dots with the
same x, like
plt.plot([3,3,3,3],[60,80,120,180],'+',markersize=8,mec='k')
The array for x values is silly, especially since the number of y values
may be rather large. Is there a way to enter a constant there?
C
On Mon, Mar 26, 2012 at 8:26 AM, Matthieu Brucher <
matthieu.bruc...@gmail.com> wrote:
> Indeed, a little bit less simple, but the solution nonetheless.
>
> Thank you!
>
>
> 2012/3/26 Zachary Pincus
>
>> > I'd like to display a scatter plot where the size for each element is
>> fixed. Currently,
Indeed, a little bit less simple, but the solution nonetheless.
Thank you!
2012/3/26 Zachary Pincus
> > I'd like to display a scatter plot where the size for each element is
> fixed. Currently, when I modify the size of the figure, the size of a
> marker is fixed, and I would like it to be prop
> I'd like to display a scatter plot where the size for each element is fixed.
> Currently, when I modify the size of the figure, the size of a marker is
> fixed, and I would like it to be proportional to the window.
> I want this because the size of the marker indicates an extent, and I would
>
hi,
I'd like to display a scatter plot where the size for each element is
fixed. Currently, when I modify the size of the figure, the size of a
marker is fixed, and I would like it to be proportional to the window.
I want this because the size of the marker indicates an extent, and I would
like it
cool. it's done!! Thanks!!!
Chao
2011/10/15 Tony Yu
>
>
> On Sat, Oct 15, 2011 at 8:55 AM, Chao YUE wrote:
>
>> Dear all,
>>
>> how can I make a scatter plot without edgecolor?
>>
>> import matplotlib.pyplot as plt
>> In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None)
>> Out[
On Sat, Oct 15, 2011 at 8:55 AM, Chao YUE wrote:
> Dear all,
>
> how can I make a scatter plot without edgecolor?
>
> import matplotlib.pyplot as plt
> In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None)
> Out[110]:
>
> in this case I can use edgecolor='w' to solve it, but when
Hi Chao!
On Oct 15, 2011, at 2:55 PM, Chao YUE wrote:
> import matplotlib.pyplot as plt
> In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None)
> Out[110]:
>
> in this case I can use edgecolor='w' to solve it, but when points overlap,
> this does not work anymore.
> Any help will
Dear all,
how can I make a scatter plot without edgecolor?
import matplotlib.pyplot as plt
In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None)
Out[110]:
in this case I can use edgecolor='w' to solve it, but when points overlap,
this does not work anymore.
Any help will be appre
Hi,
When I make a scatter plot where the y-axis is logarithmic I expected that
points where the logarithm is not defined (0 and negative values) are
skipped (as for the plot function). But it seems that the scatter plot
assignes a value of 1e-1. So in that respect plot(x,1) and scatter (x,y)
beha
Thanks Goyo and Jae-Joon Lee.
It worked!
it worked!
Goyo wrote:
>
> 2010/10/10 Alessio Civ :
>>
>>
>> Please, can someone help me? I've been digging the documentation, but I
>> can't find a way to do this.
>
> ¿Didn't you get my message on oct-5? I didn't send it to the list by
> mistake:
>
Hi,
thanks for reply.
My problem is that I need to scatter data of different periods but in the
same x.
For example, the quantity x sold in March is 1 at price y of 2, the quantity
sold in April is 2 at price y of 3. I want the 2 points to have different
colors in the same graph!
Now I'm doing
2010/10/10 Alessio Civ :
>
>
> Please, can someone help me? I've been digging the documentation, but I
> can't find a way to do this.
¿Didn't you get my message on oct-5? I didn't send it to the list by mistake:
--%<
Make
Please, can someone help me? I've been digging the documentation, but I
can't find a way to do this.
Alessio Civ wrote:
>
> Hi,
>
> I'm trying to make a scatter plot of 2 variables using a thirds as filter
> to have different colors.
>
> Let's say I have those data:
>
> x=1,2,3,4
> y=2,3,4,
On Tue, Oct 5, 2010 at 11:07 PM, Alessio Civ wrote:
>
> Hi,
>
> I'm trying to make a scatter plot of 2 variables using a thirds as filter to
> have different colors.
>
> Let's say I have those data:
>
> x=1,2,3,4
> y=2,3,4,5
> z=0,1,0,1
>
> Then I want the values of x and y corresponding to those
Hi,
I'm trying to make a scatter plot of 2 variables using a thirds as filter to
have different colors.
Let's say I have those data:
x=1,2,3,4
y=2,3,4,5
z=0,1,0,1
Then I want the values of x and y corresponding to those of z=0 to be of a
color and those corresponding to z=1 to be of another co
Hi
I'm using the following code for insert a scatter plot in a figure in Qt.
vmin=min(r_time[:])
vmax=max(r_time[:])
valores=np.arange(vmin,vmax+1)
a1=self.ui.axes4.scatter(r_east,r_nort,vmin=vmin,vmax=vmax,c=r_time,edgecolors="none")
b1=self.ui.fig2.colorbar(a1,values=valores,format="%.3f",spac
On Tuesday 19 May 2009 14:07:27 Bala subramanian wrote:
> Friends,
>
> Someone please suggest me how to make scatter plot with a matrix data such
> as the one attached. Is is possible to feed a matrix to scatter function
> directly and plot the value in each row of the matrix.
>
> Thanks,
> Bala
H
Friends,
Someone please suggest me how to make scatter plot with a matrix data such
as the one attached. Is is possible to feed a matrix to scatter function
directly and plot the value in each row of the matrix.
Thanks,
Bala
test
Description: Binary data
I am trying to plot some 2D scatter plot data where:
* the points have a colormap
* some points have larger, colored circles on them
* some points have a dark ring around them
I have managed to get this functionality to work by using both the scatter()
and plot() commands. My problem is that
On Feb 10, 2008 9:43 AM, John Hunter <[EMAIL PROTECTED]> wrote:
> > I want to create a scatter plot onto a background image. Anybody could help
> > me?Thank you!
>
> The mri_demo.py example in the matplotlib/examples in the src
> distribution illustrates this.
Sorry -- wrong example. The example
2008/2/9 He Jibo <[EMAIL PROTECTED]>:
> Hi, Everyone,
>
> I want to create a scatter plot onto a background image. Anybody could help
> me?Thank you!
The mri_demo.py example in the matplotlib/examples in the src
distribution illustrates this.
--
Hi He
2008/2/10 He Jibo <[EMAIL PROTECTED]>:
> Hi, Arnar,
>
> Thank you for your great help!This is what I need! But this code has some
> warnings, could you please help me debug it? Thank you !
>
> the first error is :
> Traceback (most recent call last):
> File "D:/Program Files/python 2.4.3/
Hi Jibo,
I'm not sure of your reasons for wanting to do this, but you might find
the psychopy package of interest:
http://www.psychopy.org/
Gary R.
He Jibo wrote:
> Hi, Everyone,
>
> I want to create a scatter plot onto a background image. Anybody could
> help me?Thank you!
>
> The backgrou
> The background.PNG is shown full screen with a resolution of 1024*768. The
> data in the fixation_xy.txt is the coordinates of eye-movement data, first
> column for X axis, second column for Y axis. I wish to do a scatter plot
> with the data onto background.PNG. Please give me a helping hand how
Hi, Everyone,
I want to create a scatter plot onto a background image. Anybody could help
me?Thank you!
The background.PNG is shown full screen with a resolution of 1024*768. The
data in the fixation_xy.txt is the coordinates of eye-movement data, first
column for X axis, second column for Y axis
I am plotting multiple scatter plots to the same axis. For each
scatter plot, all points have the same shape and color. I would like
the legend to display the shape and color of the data points in each
collection (rather than displaying a rectangle for the color). The
result should be similar to
41 matches
Mail list logo