How to plot an specific function?
<p>I want to graph this function: f(x) =e^âx/10 sin(Ïx)
I have tried with this code, but i don't get a coherent graph.</p>

<pre><code>t=np.linspace(0,10)
curve1 =np.exp(-t/10)*np.sin(t*np.pi)
plt.plot(t,curve1) 
</code></pre>

<p>You have to call <code>show()</code> after you call <code>plot()</code> to actually view your graph. The following is working code based off of your code: </p>

<pre><code>from matplotlib.pyplot import plot, show

t=np.linspace(0,10)
curve1 =np.exp(-t/10)*np.sin(t*np.pi)
plot(t,curve1)
show()
</code></pre>

<p>Output:</p>

<p><a href="http://i.stack.imgur.com/NM790.png" rel="nofollow"><img src="http://i.stack.imgur.com/NM790.png" alt="enter image description here"></a></p>

python