SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Panos K. <pk...@in...> - 2006年01月31日 18:08:24
Hello everybody,
I would like to use a solid line to plot a pulse. In other words let's 
say I have a number of zeros and ones
and I would like to connect them like this with solid lines:
-------	 +-------
	+	+	+
	+	+	+
	+	+	+
	+-------	----------
Of course when I use the plot() function with the formater "-" , it 
connects the points differently. Is there a
way to override this default action? Thank you very much.
						Panos
From: John H. <jdh...@ac...> - 2006年02月01日 19:08:07
>>>>> "Panos" == Panos Kassianidis <pk...@in...> writes:
 Panos> Hello everybody, I would like to use a solid line to plot a
 Panos> pulse. In other words let's say I have a number of zeros
 Panos> and ones and I would like to connect them like this with
 Panos> solid lines:
use the plot kwarg steps, eg, 
 plot(range(10), range(10), linestyle='steps')
JDH
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /