![]() |
libSUFR
a LIBrary of Some Useful Fortran Routines
|
Procedures to handle PGPlot (screen) settings. More...
Functions/Subroutines | |
| subroutine | pgplot_settings (scrsz, scrrat) |
| Read/create PGPlot settings file ~/.PGPlot. | |
| pure subroutine | pghv2szrat_bitmap (horiz, vert, size, ratio) |
| Convert PGPlot horizontal and vertical dimensions to paper size and ratio for bitmap. | |
| pure subroutine | pgszrat2hv_bitmap (size, ratio, horiz, vert) |
| Convert PGPlot bitmap size and ratio to horizontal and vertical dimensions in pixels. | |
| pure subroutine | pghv2szrat_screen (horiz, vert, dpi, size, ratio) |
| Convert x,y screen dimensions to PGPlot paper size and ratio for a screen. | |
| pure subroutine | pgszrat2hv_screen (size, ratio, dpi, horiz, vert) |
| Convert PGPlot paper size and ratio to screen dimensions. | |
Variables | |
| integer | screen_size_h |
| Horizontal screen size (pixels) | |
| integer | screen_size_v |
| Vertical screen size (pixels) | |
| real | screen_dpi |
| Screen resolution (DPI) | |
Procedures to handle PGPlot (screen) settings.
| pure subroutine sufr_pgplot::pghv2szrat_bitmap | ( | integer, intent(in) | horiz, |
| integer, intent(in) | vert, | ||
| real, intent(out) | size, | ||
| real, intent(out) | ratio ) |
Convert PGPlot horizontal and vertical dimensions to paper size and ratio for bitmap.
| horiz | Horizontal plot size in pixels |
| vert | Vertical plot size in pixels |
| size | PGPlot plot size (output) |
| ratio | PGPlot plot ratio (output) |
Definition at line 121 of file pgplot.f90.
| pure subroutine sufr_pgplot::pghv2szrat_screen | ( | integer, intent(in) | horiz, |
| integer, intent(in) | vert, | ||
| real, intent(in) | dpi, | ||
| real, intent(out) | size, | ||
| real, intent(out) | ratio ) |
Convert x,y screen dimensions to PGPlot paper size and ratio for a screen.
| horiz | Horizontal screen size (pixels) |
| vert | Vertical screen size (pixels) |
| dpi | Screen resolution in dots per inch |
| size | PGPlot screen size (output) |
| ratio | PGPlot screen ratio (output) |
Definition at line 163 of file pgplot.f90.
Referenced by pgplot_settings().
| subroutine sufr_pgplot::pgplot_settings | ( | real, intent(out) | scrsz, |
| real, intent(out) | scrrat ) |
Read/create PGPlot settings file ~/.PGPlot.
| scrsz | Horizontal screen size (pixels) |
| scrrat | Screen ratio (height/width) |
Definition at line 38 of file pgplot.f90.
References sufr_system::find_free_io_unit(), sufr_constants::homedir, pghv2szrat_screen(), screen_dpi, screen_size_h, and screen_size_v.

| pure subroutine sufr_pgplot::pgszrat2hv_bitmap | ( | real, intent(in) | size, |
| real, intent(in) | ratio, | ||
| integer, intent(out) | horiz, | ||
| integer, intent(out) | vert ) |
Convert PGPlot bitmap size and ratio to horizontal and vertical dimensions in pixels.
| size | PGPlot plot size |
| ratio | PGPlot plot ratio |
| horiz | Horizontal plot size in pixels (output) |
| vert | Vertical plot size in pixels (output) |
Definition at line 141 of file pgplot.f90.
| pure subroutine sufr_pgplot::pgszrat2hv_screen | ( | real, intent(in) | size, |
| real, intent(in) | ratio, | ||
| real, intent(in) | dpi, | ||
| integer, intent(out) | horiz, | ||
| integer, intent(out) | vert ) |
Convert PGPlot paper size and ratio to screen dimensions.
| size | PGPlot screen size |
| ratio | PGPlot screen ratio |
| dpi | Screen resolution in dots per inch |
| horiz | Horizontal screen size (pixels) (output) |
| vert | Vertical screen size (pixels) (output) |
Definition at line 185 of file pgplot.f90.
| real sufr_pgplot::screen_dpi |
| integer sufr_pgplot::screen_size_h |
Horizontal screen size (pixels)
Definition at line 26 of file pgplot.f90.
Referenced by pgplot_settings().
| integer sufr_pgplot::screen_size_v |
Vertical screen size (pixels)
Definition at line 27 of file pgplot.f90.
Referenced by pgplot_settings().