How to plot two different graphs in python
<p>I want to get two lines in the same graph.</p>

<p>This is my code: </p>

<pre><code>    x=sorted(true_strain)
    y=sorted(true_stress_1)
    plt.plot(x,y)
    plt.title('$Tensile Stress-Strain Curve$')
    plt.xlabel('True Strain [-]')
    plt.ylabel('$True Stress (MPa)$')
    a=(true_stress_2)
    b=sorted(true_strain)
    plt.plot(a,b)
</code></pre>

<p>But the image I got is blank. What am I missing?</p>

<p>you haven't actually called plt.show(), try adding it at the bottom.</p>

<pre><code>x=sorted(true_strain)
y=sorted(true_stress_1)
plt.plot(x,y)
plt.title('$Tensile Stress-Strain Curve$')
plt.xlabel('True Strain [-]')
plt.ylabel('$True Stress (MPa)$')
a=(true_stress_2)
b=sorted(true_strain)
plt.plot(a,b)
plt.show()
</code></pre>

python