Produces a hard(soft? :) )copy of the plot in a user specified format. Valid file formats are :
in addition to x11, which of course does not generate any "hardcopy" :)
This function must be called immediately after gnuplot_init and before any plotting or set commands. In case an unknown format is chosen, the function reverts to PostScript. If you choose the PDF format, you must have the epstopdf command available in your $PATH variable. The actual conversion from intermediary ps to pdf takes place in gnuplot_genpdf1. So gnuplot_genpdf must be called after this to ensure that the PDF file is generated. The function does no file extension checking, so make sure that you supply the correct output filename.
BAD_SIGNAL
: Called with a dissociated pointer.
interface integer function gnuplot_hardcopy(ptr_gctrl,plotfileformat,& plotfilename,extraarguments,pubflag) result(status) type(gnuplot_ctrl), pointer :: ptr_gctrl character(len=*), intent(in) :: plotfileformat,plotfilename character(len=*), intent(in), optional :: extraarguments character(len=3), intent(in), optional :: pubflag end function gnuplot_hardcopy end interface |