Skip to content

Commit

Permalink
adjusting axis to lower values
Browse files Browse the repository at this point in the history
  • Loading branch information
chi86 committed Mar 17, 2019
1 parent 41cea04 commit 8d52edc
Show file tree
Hide file tree
Showing 3 changed files with 2,401 additions and 1,943 deletions.
11 changes: 6 additions & 5 deletions PrintDia.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
fig_x, fig_y = 14, 9
fig=plt.figure(figsize=(fig_x, fig_y))
ax = fig.gca()
ax.set_ylim(240,400)
ax.set_xlim(800,2000)

qrange=np.linspace(0,1,10).tolist()
ts = PropertyPlot(fluid, 'TS', unit_system='SI', tp_limits='ORC', axis=ax)
ts = PropertyPlot(fluid, 'TS', unit_system='SI', tp_limits='ORC', axis=ax)#,reciprocal_density=True)
ts.calc_isolines(CP.iQ, iso_range=qrange, num=10)
ts.


ts.props[CP.iDmass]['color'] = 'red'
ts.props[CP.iDmass]['lw'] = '0.5'
Expand All @@ -50,14 +50,15 @@
ts.props[CP.iP]['lw'] = '0.5'
ts.calc_isolines(CP.iP, iso_range=prange, num=len(prange),rounding=False)


ts.draw()

axL=ts.get_axis_limits()

ax.text(axL[0]+60, axL[3]-7,fluid,size=20)
ax.text(axL[0]+20, axL[3]-7,fluid,size=20)


t1=axL[3]-20
t1=axL[3]-25
t0=t1-5

for p in prange:
Expand Down
Loading

0 comments on commit 8d52edc

Please sign in to comment.