evTools
Tools to manipulate and display output from the binary stellar-evolution code ev/STARS/TWIN
 All Classes Files Functions Variables Pages
Functions/Subroutines
plotfunctions.f90 File Reference

(evTools version 0.4.1, revision 191, hash 60997ac (2015-04-25))

Functions and subroutines for the evTools package that need pgplot. More...

Functions/Subroutines

subroutine plotlinesofconstantradius (ltmin, ltmax, llmin, llmax)
 Plot lines of constant R on HRD (plotplt*) More...
 
subroutine plotzams ()
 PLANNED!!! Plot the zams; use [libdir]/zams_z0_02.plt. More...
 
subroutine plt_convection (nmax, nvar, n, dat0, vx, lgx, lgy, ymin, ymax, nhp, hp, hlp, hlbl)
 Make a convection plot from the data in a *.plt? file. More...
 
subroutine identify_closest_mdl_model (nn, nx, ny, xx, yy, xmin, xmax, ymin, ymax)
 Select a point in a mdl graph and find the model in the .mdl[12] file closest to it. More...
 

Detailed Description

Functions and subroutines for the evTools package that need pgplot.

Function/Subroutine Documentation

subroutine identify_closest_mdl_model ( integer, intent(in)  nn,
integer, intent(in)  nx,
integer, intent(in)  ny,
real, dimension(10,nn), intent(in)  xx,
real, dimension(10,nn), intent(in)  yy,
real, intent(in)  xmin,
real, intent(in)  xmax,
real, intent(in)  ymin,
real, intent(in)  ymax 
)

Select a point in a mdl graph and find the model in the .mdl[12] file closest to it.

Parameters
nnMaximum number of lines in a model
nxNumber of x variables
nyNumber of y variables
xxX variable values
yyY variable values
xminMinimum value on horizontal axis
xmaxMaximum value on horizontal axis
yminMinimum value on vertical axis
ymaxMaximum value on vertical axis

Referenced by plotmdl().

subroutine plotlinesofconstantradius ( real, intent(in)  ltmin,
real, intent(in)  ltmax,
real, intent(in)  llmin,
real, intent(in)  llmax 
)

Plot lines of constant R on HRD (plotplt*)

Parameters
ltminMinimum logT in HRD
ltmaxMaximum logT in HRD
llminMinimum logL in HRD
llmaxMaximum logL in HRD
subroutine plotzams ( )

PLANNED!!! Plot the zams; use [libdir]/zams_z0_02.plt.

It would be nice to not only plot a HRD, but any parameter

Todo:
Write a routine to read a plt file first, then use it here
subroutine plt_convection ( integer, intent(in)  nmax,
integer, intent(in)  nvar,
integer, intent(in)  n,
real(double), dimension(nvar,nmax), intent(in)  dat0,
integer, intent(in)  vx,
logical, intent(in)  lgx,
logical, intent(in)  lgy,
real, intent(in)  ymin,
real, intent(in)  ymax,
integer, intent(in)  nhp,
integer, dimension(1000), intent(in)  hp,
logical, intent(in)  hlp,
logical, intent(in)  hlbl 
)

Make a convection plot from the data in a *.plt? file.

Parameters
nmaxMaximum number of model (track) points
nvarNumber of variables in the data array
nNumber of model points
dat0Model data for nvar variables and nmax model points - not logged!
vxID of x variable
lgxLogarithmic x-axis? (T/F)
lgyLogarithmic y-axis? (T/F)
yminMinimum of vertical plot range
ymaxMaximum of vertical plot range
nhpNumber of highlighted points
hpHighlighted points (model number(?))
hlpHighlight points?
hlblLabel highlight points?
Todo:
  • don't pass all nvar variables, but only those needed?
  • do I need all nmax rows, or should n do?

Referenced by plotplt().