saving . . . saved Last Exercise Question has been deleted. Last Exercise Question has been hidden .
Last Exercise Question
I am trying to plot the graphs. But, unable to do so. I have written down this:
In [17]: V=linspace(21,100,500)

In [18]: T=linspace(200,200,500)

In [19]: subplot(2,1,1)
Out[19]: <matplotlib.axes._subplots.AxesSubplot at 0x68a96a0>

In [20]: plot(V,nR*200/V)
Out[20]: [<matplotlib.lines.Line2D at 0x87563c8>]

In [21]: subplot(2,1,2)
Out[21]: <matplotlib.axes._subplots.AxesSubplot at 0x72fb048>

In [22]: plot(T,nR*200/V)
Out[22]: [<matplotlib.lines.Line2D at 0x875d358>]

In [23]: plot(T,2.0/V)  # Tried this too as I wanted to test if I'm getting wrong with formula!
Out[23]: [<matplotlib.lines.Line2D at 0x88b7630>]

I have attached the figure which I am getting.<img align="none" alt="" src="" style="line-height: 1.428571429;"> <a href="" target="_blank" title="Plot PVT Problem">Plot PVT Problem</a>
Please let me know where I'm getting wrong. Thanks in advance!

Python Multiple-plots 17-18 min 30-40 sec 31-05-15, 8:54 a.m. mitsu.w



If you are trying to plot the same graphs as shown in the tutorial, then the formula that you have typed are not the same as shown in the tutorial & hence the difference in the plots.
As far as the plots you are getting are concerned, there is nothing wrong with it. It has plotted according the the formula you have given in the plot command.

Please feel free to ask any more questions if it is still confusing.

01-06-15, 11:49 a.m. hardythe1

Log-in to answer to this question.