Hi all,
somebody can show me with an example how can I set the numpy's broadcasting
feature?
Actually, I'm using 'meshgrid' in the script but I knew that it takes a lot of
time to have the plot.
Thank you.
Raf
-Original Message-
From: Raffaele Quarta [mailto:raffaele.qua...@linksmt.
I think you can just set the linewidth to zero like in these examples:
http://matplotlib.org/examples/mplot3d/surface3d_demo.html
http://matplotlib.org/examples/mplot3d/surface3d_demo3.html
Cheers!
Ben Root
On Sat, Sep 20, 2014 at 7:44 PM, Adam Hughes wrote:
> Also, is it possible to change th
In the example you provided, you tried to broadcase two 1D arrays against
each other, which isn't what you want because all you will get is another
1-D array. Broadcasting automatically repeats data for you along a
dimension. It is rare to actually call np.broadcast() as it usually happens
automati
Hi I'm trying to use a 3d scatter plot.
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.scatter(np.log10(NP), np.log10(NB*10**12), np.log10(NL), c='k'
As of version 1.4.0, the 3d scatter plotting function gained the
"depthshade" argument that you can set to false.
http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html#scatter-plots
Cheers!
Ben Root
On Mon, Sep 22, 2014 at 11:18 AM, Gabriele Brambilla <
gb.gabrielebrambi...@gmail.com> wrote:
If it returns this means that I have an older version?
Traceback (most recent call last):
File "dataMODEL.py", line 99, in
ax.scatter(np.log10(NP), np.log10(NB*10**12), np.log10(NL), c='b',
marker='o
', depthshade=False)
File "C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py",
quite likely. To know for sure, run the following in the command-line:
python -c "import matplotlib; print matplotlib.__version__"
On Mon, Sep 22, 2014 at 11:42 AM, Gabriele Brambilla <
gb.gabrielebrambi...@gmail.com> wrote:
> If it returns this means that I have an older version?
>
> Traceback
Hi,
I want to show some points on a world map. But the color of a point is
linked to the value at the point. Any idea why the code below does not give
what I want (same color, no legend)?
Many thanks,
Tom
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
Thanks benjamin. Not sure how I overlooked this!
You wouldn't happen to know how to remove the cstrides while keeping the
rstrides in tact? By strides, I guess I don't mean strides per-se, but the
contour lines themselves that run over the surface.
On Mon, Sep 22, 2014 at 9:55 AM, Benjamin Root
Sorry, that isn't possible in the current design. Instead, I would suggest
making a line plot on top of surface mimicking this. Although, depending on
the shape of the surface, this may not work out well as mplot3d may not
properly compose such a scene of mixed objects.
Also, as a side note, be ca
I guess I could change my API a bit to allow for data that would better fit
ax.plot3d. I suppose plot3d is really what I'm trying to make, where I'd
just pass 5 evenly spaced curves from my dataset.
If you think of a hacky solution even, can you shoot me a message?
Thanks for your help and the h
1.3.1
I'm using Anaconda...do you know if do a package exist of Anaconda with
1.4.0?
thanks
Gabriele
2014-09-22 17:47 GMT+02:00 Benjamin Root :
> quite likely. To know for sure, run the following in the command-line:
>
> python -c "import matplotlib; print matplotlib.__version__"
>
>
> On Mo
yes, you should be able to do "conda update matplotlib" or something to
that effect.
On Mon, Sep 22, 2014 at 3:24 PM, Gabriele Brambilla <
gb.gabrielebrambi...@gmail.com> wrote:
> 1.3.1
>
> I'm using Anaconda...do you know if do a package exist of Anaconda with
> 1.4.0?
>
> thanks
>
> Gabriele
>
Hi all,
I am stuck with getting basemap up and running
http://stackoverflow.com/questions/25985808/error-importing-basemap-keyerror-dap
kindly look at the error i have posted on stackoverflow and let me know
what are the next set of steps that i need to follow
Thanks,
Sachi
-
14 matches
Mail list logo