----------------------------------------------------------------------
| 886 | return; |
| 887 | } |
| 888 | |
| 889 | //---------------------------------------------------------------------- |
| 890 | void addComment( std::stringstream &Content, |
| 891 | const double posy, const int marginl, const int marginb, |
| 892 | const double fontscale, const string &comment ) |
| 893 | { |
| 894 | std::stringstream &st = Content; |
| 895 | |
| 896 | st << "q\n"; |
| 897 | st << "1 0 0 1 " << PLOTPDFVAR::PADDING+marginl << " " << PLOTPDFVAR::PADDING+marginb << " cm\n"; |
| 898 | st << "0 0 0 RG\n"; // black |
| 899 | |
| 900 | const int posx = 0; |
| 901 | |
| 902 | st << "BT\n"; |
| 903 | st << "/F1 " << PLOTPDFVAR::DEFAULT_COMMENT_FONTSIZE*fontscale << " Tf\n"; |
| 904 | st << "1 0 0 1 " << posx << ' ' << posy+PLOTPDFVAR::DEFAULT_COMMENT_BASE << " Tm " |
| 905 | << "(" << comment << ") Tj\n"; |
| 906 | st << "ET\n"; |
| 907 | st << "Q\n"; |
| 908 | |
| 909 | return; |
| 910 | } |
| 911 |