|
From: Rich S. <rsh...@ap...> - 2011-06-06 16:28:30
|
Despite reading on-line and other documentation I'm not getting the appearance as I want. Here is the script: --- set datafile missing "NA" set xdata time set timefmt "%Y-%m-%d" set format x "%d-%m-%Y" set nokey set xtics rotate font "palatino,11" set xlabel "Date" font "palatine,11" offset -3 set ylabel "Precipitation (in)" font "palatino,13" set title "Daily Precipitation 2008-2010: CC-OR-8" set size ratio -2 plot "cocorahs.dat" u 1:($2) w boxes --- Three issues I've not resolved: 1. I cannot move the xlabel down from the rotated xtic labels 2. The typeface does not change to palatine (and I cannot find a list of the PostScript typefaces supported by gnuplot). 3. I've not seen where to specify a line color of -1 (black) for the boxes. Pointers appreciated. Rich |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2011-06-06 21:18:32
|
On 06.06.2011 18:28, Rich Shepard wrote: > set xlabel "Date" font "palatine,11" offset -3 > > 1. I cannot move the xlabel down from the rotated xtic labels Did you exhaustively try out the 'offset' option to 'set xlabel'? And what you mean by down "from" the xtic labels? > 2. The typeface does not change to palatine (and I cannot find a list of > the PostScript typefaces supported by gnuplot). Sure "palatin_e_" isn't a typo? I just ask because the other two times you wrote "palatin_o_"? As to that list of supported font --- there isn't one, and there really can't be. gnuplot doesn't "support" PostScript fonts. It just passes what you told it into the PostScript file. The instance that needs to support those fonts is your PostScript interpreter. > 3. I've not seen where to specify a line color of -1 (black) for the > boxes. -1 is not a line color. It's a linetype. On some terminal drivers, that linetype will end up black. If you don't like that, or want some other linetype in black, use the 'linecolor' option. |
|
From: Rich S. <rsh...@ap...> - 2011-06-06 21:53:19
|
On Mon, 6 Jun 2011, Hans-Bernhard Bröker wrote: > Did you exhaustively try out the 'offset' option to 'set xlabel'? And > what you mean by down "from" the xtic labels? Hans-Bernhard, I don't know if it qualifies as 'exhaustive' but I tried -0.5, -1. -5, and -3 as offsets. What I mean by down from the xtic labels is lower than the label text itself (dates, rotated 90 degrees). > Sure "palatin_e_" isn't a typo? I just ask because the other two times you > wrote "palatin_o_"? Yep. It's a typo. And, apparently, palatino is not recognized as a typeface. It's what I use in LaTeX/LyX. > As to that list of supported font --- there isn't one, and there really can't > be. gnuplot doesn't "support" PostScript fonts. It just passes what you > told it into the PostScript file. The instance that needs to support those > fonts is your PostScript interpreter. Well, ghostscript seems to have no issues with palatino in other applications. Where do you suggest I look to learn what typefaces will work locally with gnuplot? > -1 is not a line color. It's a linetype. On some terminal drivers, that > linetype will end up black. If you don't like that, or want some other > linetype in black, use the 'linecolor' option. Fixed. Sample plot attached. Thanks, Rich |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2011-06-06 22:59:40
|
On 06.06.2011 23:53, Rich Shepard wrote: > On Mon, 6 Jun 2011, Hans-Bernhard Bröker wrote: > I don't know if it qualifies as 'exhaustive' but I tried -0.5, -1. -5, and > -3 as offsets. Seems you missed the meaning of the text in "help set xlabel" about the actual contents of the <offset> argument. Note how it speaks of 'x,y'? What you were looking for is set xlabel 'my text' offset 0, -5 >> Sure "palatin_e_" isn't a typo? I just ask because the other two times >> you wrote "palatin_o_"? > Yep. It's a typo. And, apparently, palatino is not recognized as a > typeface. It's what I use in LaTeX/LyX. And what does that actually end up in the generated PostScript file? Note that LaTeX has an entire world of font specification methods all its own. None of that automatically works for gnuplot, which follows a pretty simple scheme: you give it a string, and it'll put that into the outputfile. For the case at hand, I'd suggest adjusting the capitalization: "Palatino" >> As to that list of supported font --- there isn't one, and there >> really can't be. gnuplot doesn't "support" PostScript fonts. It just >> passes what you told it into the PostScript file. The instance that >> needs to support those fonts is your PostScript interpreter. > > Well, ghostscript seems to have no issues with palatino in other > applications. Where do you suggest I look to learn what typefaces will work > locally with gnuplot? > >> -1 is not a line color. It's a linetype. On some terminal drivers, that >> linetype will end up black. If you don't like that, or want some other >> linetype in black, use the 'linecolor' option. > > Fixed. > > Sample plot attached. > > Thanks, > > Rich > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Rich S. <rsh...@ap...> - 2011-06-06 23:24:12
|
On Tue, 7 Jun 2011, Hans-Bernhard Bröker wrote: > Seems you missed the meaning of the text in "help set xlabel" about the > actual contents of the <offset> argument. Note how it speaks of 'x,y'? > What you were looking for is > > set xlabel 'my text' offset 0, -5 Yes, you are correct. > And what does that actually end up in the generated PostScript file? Blank space with error messages in the virtual terminal that the font cannot be found. > I'd suggest adjusting the capitalization: > > "Palatino" Makes sense. I'll try that. Thank you again, Rich |
|
From: Rich S. <rsh...@ap...> - 2011-06-06 23:33:43
|
On Tue, 7 Jun 2011, Hans-Bernhard Bröker wrote: > For the case at hand, I'd suggest adjusting the capitalization: > > "Palatino" Strange. That doesn't work, either. If I specify "Times" it works. Except, when I go to export the grphic and 'set terminal png' there's an error message that gp cannot find "Arial" (probably because I don't have that installed) and it defaults to some non-scalable typeface. I have quite a few Type1, TrueType, and Bitstream fonts installed here. I'm sure there's a name that gp will recognize and accept if I can find the time to go through all of 'em. Rich |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2011-06-07 18:08:50
|
On 07.06.2011 01:33, Rich Shepard wrote: > Strange. That doesn't work, either. If I specify "Times" it works. Except, > when I go to export the grphic and 'set terminal png' there's an error > message that gp cannot find "Arial" (probably because I don't have that > installed) and it defaults to some non-scalable typeface. You're silently assuming that font selection must somehow be the same for all terminals. It's not. > I have quite a few Type1, TrueType, and Bitstream fonts installed here. The problem with that idea is that you assume that there is a single, well-defined meaning to "installing" a font. There isn't. > I'm sure there's a name that gp will recognize What you're still not getting is that gnuplot itself recognizes _no_ fonts at all. It's your output system (TeX, PostScript, freetype, cairo, whatever) that does that. So every driver will usually have a different set of fonts. |
|
From: Rich S. <rsh...@ap...> - 2011-06-07 18:15:25
|
On Tue, 7 Jun 2011, Hans-Bernhard Bröker wrote: > What you're still not getting is that gnuplot itself recognizes _no_ fonts > at all. It's your output system (TeX, PostScript, freetype, cairo, > whatever) that does that. So every driver will usually have a different > set of fonts. Actually, I got that a while ago. What I don't know is how to identify the typefaces available to me under the different terminal types supported by gnuplot. I care less how it looks on the x11 terminal than what it looks like when exported to .png or .ps. Is there documentation that tells me how to find what the terminals support on my linux system? Thanks, Rich |
|
From: Rich S. <rsh...@ap...> - 2011-06-07 18:34:16
|
On Tue, 7 Jun 2011, Rich Shepard wrote: > Is there documentation that tells me how to find what the terminals > support on my linux system? In partial answer to my question: I set the terminal to postscript, then to png and ran 'test' for each. The results are not what I expected. "test.ps" has no color at all; strictly black-and-white. "test.png" is worse: it's rotated 90 degrees counterclockwise and filled with a gray background. None of the sample text is visible. "test.jpg" shows full color and notes that it will rotate only truetype fonts. So, I guess I get a TT font name it recognizes and output to .jpg rather than to .png. Rich |
|
From: Rich S. <rsh...@ap...> - 2011-06-07 22:14:42
|
On Tue, 7 Jun 2011, Hans-Bernhard Bröker wrote: > What you're still not getting is that gnuplot itself recognizes _no_ fonts > at all. It's your output system (TeX, PostScript, freetype, cairo, > whatever) that does that. So every driver will usually have a different > set of fonts. My copy of "Gnuplot in Action" arrived today. On page 206 (listing 11.3) is this example: set t png font FreeSans 11 set t png font "/usr/share/fonts/truetype/FreeSans.ttf, 11" In my script I tried both ways; for example, set t "Daily Precipitation 2008-2010: CC-OR-8" font "/usr/share/fonts/TrueType/verdanab, 15" yet when setting the terminal they both produce the same result: gnuplot> set terminal jpeg Terminal type set to 'jpeg' Could not find/open font when opening font "arial", using internal non-scalable font Options are 'nocrop medium ' BTW, I have the arial fonts installed in that same directory. What am I still missing? Rich |
|
From: <rhu...@ih...> - 2011-06-07 23:27:34
|
On Tue, 7 Jun 2011 15:14:32 -0700 (PDT) Rich Shepard <rsh...@ap...> wrote: > On Tue, 7 Jun 2011, Hans-Bernhard Bröker wrote: > > > What you're still not getting is that gnuplot itself recognizes _no_ fonts > > at all. It's your output system (TeX, PostScript, freetype, cairo, > > whatever) that does that. So every driver will usually have a different > > set of fonts. > > My copy of "Gnuplot in Action" arrived today. On page 206 (listing 11.3) > is this example: > > set t png font FreeSans 11 > set t png font "/usr/share/fonts/truetype/FreeSans.ttf, 11" > > In my script I tried both ways; for example, > > set t "Daily Precipitation 2008-2010: CC-OR-8" font "/usr/share/fonts/TrueType/verdanab, 15" set t t = terminal not title Have you tried running your commands interactively? gnuplot version? > > yet when setting the terminal they both produce the same result: > > gnuplot> set terminal jpeg > Terminal type set to 'jpeg' > Could not find/open font when opening font "arial", using internal > non-scalable font > Options are 'nocrop medium ' > > BTW, I have the arial fonts installed in that same directory. > > What am I still missing? |
|
From: Rich S. <rsh...@ap...> - 2011-06-07 23:33:03
|
On Tue, 7 Jun 2011, rhu...@ih... wrote: > set t > t = terminal not title Ah, missed that. > Have you tried running your commands interactively? gnuplot version? Yes I have. Gnuplot-4.2.6. Thanks, Rich |