libSUFR
a LIBrary of Some Useful Fortran Routines
All Classes Namespaces Files Functions Variables Pages
sufr_pgplot Module Reference

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)
 

Detailed Description

Procedures to handle PGPlot (screen) settings.

Function/Subroutine Documentation

◆ pghv2szrat_bitmap()

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.

Parameters
horizHorizontal plot size in pixels
vertVertical plot size in pixels
sizePGPlot plot size (output)
ratioPGPlot plot ratio (output)

Definition at line 121 of file pgplot.f90.

◆ pghv2szrat_screen()

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.

Parameters
horizHorizontal screen size (pixels)
vertVertical screen size (pixels)
dpiScreen resolution in dots per inch
sizePGPlot screen size (output)
ratioPGPlot screen ratio (output)

Definition at line 163 of file pgplot.f90.

Referenced by pgplot_settings().

◆ pgplot_settings()

subroutine sufr_pgplot::pgplot_settings ( real, intent(out) scrsz,
real, intent(out) scrrat )

Read/create PGPlot settings file ~/.PGPlot.

Parameters
scrszHorizontal screen size (pixels)
scrratScreen 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.

Here is the call graph for this function:

◆ pgszrat2hv_bitmap()

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.

Parameters
sizePGPlot plot size
ratioPGPlot plot ratio
horizHorizontal plot size in pixels (output)
vertVertical plot size in pixels (output)

Definition at line 141 of file pgplot.f90.

◆ pgszrat2hv_screen()

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.

Parameters
sizePGPlot screen size
ratioPGPlot screen ratio
dpiScreen resolution in dots per inch
horizHorizontal screen size (pixels) (output)
vertVertical screen size (pixels) (output)

Definition at line 185 of file pgplot.f90.

Variable Documentation

◆ screen_dpi

real sufr_pgplot::screen_dpi

Screen resolution (DPI)

Definition at line 28 of file pgplot.f90.

Referenced by pgplot_settings().

◆ screen_size_h

integer sufr_pgplot::screen_size_h

Horizontal screen size (pixels)

Definition at line 26 of file pgplot.f90.

Referenced by pgplot_settings().

◆ screen_size_v

integer sufr_pgplot::screen_size_v

Vertical screen size (pixels)

Definition at line 27 of file pgplot.f90.

Referenced by pgplot_settings().