Às 09:17 de 10-01-2018, Thomas Jollans escreveu:
On 2018-01-10 05:22, Paulo da Silva wrote:
Hi all.
...
It's a bit hard to tell without a working example, but I think you'll
want to set a tick locator, e.g. something like
ax0.xaxis.set_major_locator(matplotlib.ticker.MultipleLocator(1))
B
On 2018-01-10 05:22, Paulo da Silva wrote:
> Hi all.
>
> I want to have dates as major ticks labels of X axis.
> This fragment of code works fine except that I need more dates to appear
> instead the 6 I am getting. The number of dates in dtsd is for ex. 262.
>
> Thanks for any help.
>
> BTW, I
"eryksun ()" writes:
> figure(fig1.number)
> plot(...)
that's already much better than figure(1);...;figure(2);...
> Alternatively, you can use the plot methods of a particular axes:
>
> fig1 = figure()
> ax1 = axes()
> fig2 = figure()
> ax2 = axes()
>
> ax1.plot(...
On Monday, March 28, 2011 12:04:02 PM UTC-4, Giacomo Boffi wrote:
>
> >>> f1=figure(1)
> >>> f2=figure(2)
> >>> f1
>
> >>> f2
>
> >>> plot(sin(linspace(0,10)),figure=f1)
> []
> >>> plot(cos(linspace(0,10)),figure=f2)
> []
> >>> show()
You can set the current figure to fig1 with the following:
Blockheads Oi Oi writes:
> I don't know why but this works fine.
> f1=figure(1)
> plot(sin(linspace(0,10)),figure=f1)
> f2=figure(2)
> plot(cos(linspace(0,10)),figure=f2)
> show()
it works as well (with a proper t...)
plot(sin(t);figure(2);plot(cos(t));show()
because that's the way it is advis
On 28/03/2011 17:04, Giacomo Boffi wrote:
i executed the following interactions and i remained disappointed
$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from pylab import *
f1=figure(1)
f2=
On 2009-07-30 04:02, Kaan AKŞİT wrote:
I am a newbee in Python. I have some problem with usage of Pyplot. I
have a loop that creates plot in every end of it. Problem starts here:
The first plot is fine but the second one is plotted onto the first
plot. I use:
plt.cla()
plt.draw()
plt.hold(False)
Please help me I have been dealing with this little piece of code for 2
days. I am stuck and loosing time with it.
plt.figure(count)
plt.xlabel("Time steps")
plt.ylabel("Values")
plt.title("Output of ADCs")
plt.plot(timing,adc0)
plt.plot(