|
From: Derek L. <de...@bo...> - 2016-03-19 23:11:27
|
Hi Brett, For your first question, I don't know that this is possible with Gnuplot, but I have only been using it for a short time myself—maybe somebody more experienced has an idea. The manual for Key says "[Each] entry contains a plot title and a sample line/point/box of the same color and fill properties as used in the plot itself." For your second question, you want the option "Left" to "set key". gnuplot> set key reverse Left gnuplot> plot "1.dat" with lines title 'short title', "2.dat" with lines title 'slightly longer title' To get answers to your questions, I had to read the documentation… it is very thorough! best, Derek > On Mar 19, 2016, at 4:00 AM, Brett <bre...@16...> wrote: > > Dear Derek, > > Thanks for the message. Will you please take a look at the attached plotting? I want to simulate this kind of plotting. > > First, you see its color bar was much thicker than the width of the curve line and the title text. Will you please show me how to get this kind of thicker color bar, which is much thicker than the line width? > > Second, you see its black color bar, red color bar and green color bar were aligned, at the same time the "model" in "model versus summed map", "model" in "model versus half map 1 (work)", "model" in "model versus half map 2 (free)" are also aligned (altough the length of the 3 titles was different). I know it has used "set key reverse". Will you please let me know how to keep both the color bars and the first letter (word) of different lengths of title text aligned? > > I use gnuplot 5.0. > > I am looking forward to getting a reply from you. > > Brett > > > > > At 2016-03-18 22:29:48, "Derek Lamb" <de...@bo...> wrote: > I don't understand your question. If I set lw to 20 or I set lw to 0.1, the 'ABCD' text stays exactly the same, when using the Aqua terminal with Gnuplot 5.0. It might help to know: > > what version of Gnuplot are you using? > what terminal are you using? > what did you try? > where in the documentation did you look and not find your answer? > > Derek > >> On Mar 18, 2016, at 2:06 AM, Brett <bre...@16... <mailto:bre...@16...>> wrote: >> >> >> Dear Derek, >> >> Thanks. If we do >> >> plot "1.dat" with lines title 'ABCD', >> >> the thickness of the color bar is corresponded to the text 'ABCD'. Is any way we get think color bar and thin ABCD' text by the gnuplot? >> >> Brett >> >> >> >> >> >> >> >> At 2016-03-17 21:36:12, "Derek Lamb" <de...@bo... <mailto:de...@bo...>> wrote: >> >You want to look at the many many options for 'set key'. See the gnuplot manual: if you have the PDF of version 5.0, 'set key' starts on pg 129. >> > >> >You can get your first (well, almost your first) request >> >1 blackbar >> >200 redbar >> >by doing 'set key Left' before your plot command. >> > >> >You can get your second request with 'set key reverse' >> > >> >best, >> >Derek >> > >> >> On Mar 17, 2016, at 6:29 AM, Brett <bre...@16... <mailto:bre...@16...>> wrote: >> >> >> >> Dear All, >> >> >> >> >> >> Suppose I have 1.dat and 200.dat. Whe I input >> >> >> >> >> >> plot "1.dat" with lines lt rgb "black" title '1', "200.dat" with lines lt rgb "red" title '200', >> >> >> >> >> >> For the output figure, the "black" bar is after txt "1", and the "red" bas is after "200". Is any way the text "1" followed by the "black" bar can align vertically with "2" of "200" followed by the "red" bar, just something like following: >> >> >> >> >> >> 1 black bar >> >> 200 red bar >> >> >> >> >> >> In addition, is any way the color bar occurs before the title text, at the same time the "black" bar followed by title text "1" align with the "red" bar followed by title text "200", just something like following: >> >> >> >> >> >> black bar 1 >> >> red bar 200 >> >> >> >> >> >> I am looking forward to getting a reply from you. >> >> >> >> >> >> Brett >> >> ------------------------------------------------------------------------------ >> >> Transform Data into Opportunity. >> >> Accelerate data analysis in your applications with >> >> Intel Data Analytics Acceleration Library. >> >> Click to learn more. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140 <http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140> >> >> _______________________________________________ >> >> gnuplot-info mailing list >> >> gnu...@li... <mailto:gnu...@li...> >> >> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info <https://lists.sourceforge.net/lists/listinfo/gnuplot-info> >> >> >> > >> >> >> > > > > > <PLOT.png> |