Hi, I am trying to get a live scrolling graph built from data send by two
arduino sensors. Although live data is being shown in the graph I am not
able to get the x axis scrolling. Actually, after reaching the point
established by the counter (in this case cnt>10), the plotting stops. The
arduin
Hi Juan,
FYI - you forgot to reply to the mailing list in your previous email...
As for the problem, as Eric mentioned, it seems to be a problem with your
plot_posterior_nodes function. That one is out of the matplotlib library,
and I guess it belongs to the HDDM package. You might want to ask pe
On 2015/06/03 8:03 AM, Juan Wu wrote:
> Hi, List experts,
>
> Any one can help for this error solution? I googled but did not find
> this report.
>
> Thanks in adance...
>
>
> Traceback (most recent call last):
>
>File "", line 5, in
> hddm.analyze.plot_posterior_nodes([float(v_Neutral),
Hi Juan,
Could you post a minimal code to reproduce your issue?
Shawn
On Wed, Jun 3, 2015 at 2:03 PM, Juan Wu wrote:
> Hi, List experts,
>
> Any one can help for this error solution? I googled but did not find this
> report.
>
> Thanks in adance...
>
>
> Traceback (most recent call last):
>
>
Hi, List experts,
Any one can help for this error solution? I googled but did not find this
report.
Thanks in adance...
Traceback (most recent call last):
File "", line 5, in
hddm.analyze.plot_posterior_nodes([float(v_Neutral), float(v_Win),
float(v_Loss)])
File "C:\Anaconda\lib\site
The plot will autoscale base on the data that has been plotted to it. In
your code, you are repeatedly calling plot(), albeit with a "scrolled"
version of the data, but all of the previous calls to plot() are still
visible. Also, no x-coordinate information is provided to the calls to
plot(), so ea
Hi, I am trying to get a live scrolling graph built from data send by two
arduino sensors. Although live data is being shown in the graph I am not
able to get it scrolling. The arduino and Python codes I am working with
are included below. I would very much appreciate if you can help me getting
t
I think the problem is associated with the way np.arange is used.
"np.arange(0,10,20)" would return array[0]
If you still would like to manually configure the tick positions the way
you seemed to want, you can use "np.linspace".
Below worked for me.
import matplotlib.pyplot as plt
import
Works for me too using
plt.grid()
but I can't find the way to customize the grid (size, type…)?
trying http://matplotlib.org/examples/pylab_examples/axes_props.html
doesn't do anything for me !
On Jun 3, 2015, at 9:39 AM,
wrote:
> But this works:
>
> import matplotlib.pyplot as plt
> i
But this works:
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
x = np.linspace(0,10,50)
y = np.sin(x)
plt.clf()
plt.clf()
plt.plot(x,y)
leg = plt.legend(['legend 1'])
plt.title('Sample title')
plt.ylabel('Sample ylabel')
plt.xlabel('Sample xla
Hm, I tried both suggestions, and still no grid (removed PDF for simplicity):
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
x = np.linspace(0,10,50)
y = np.sin(x)
plt.clf()
plt.clf()
plt.plot(x,y)
leg = plt.legend(['legend 1'])
plt.title('Sam
11 matches
Mail list logo