|
From: Pau <vim...@go...> - 2012-03-04 11:25:32
|
Hi, I have done my homework and googled here and there and did not find the answer... How could I change the background of the plotting area from white to, say, black? I do not mean the gnuplot window, but the resulting eps... I am sorry if this is a trivial question... thanks |
|
From: Thomas S. <t.s...@fz...> - 2012-03-04 14:14:02
|
Pau <vim.unix <at> googlemail.com> writes: > > Hi, > > I have done my homework and googled here and there and did not find > the answer... > > How could I change the background of the plotting area from white to, > say, black? I do not mean the gnuplot window, but the resulting eps... > > I am sorry if this is a trivial question... > > thanks when using the terminal 'postscript eps' with the 'background' option, then the background will be colored using postscript commands, so the eps file will contain the background color. but when using 'epslatex' the background will be colored using latex commands, i.e. the eps file will not contain any background color. |
|
From: Pau <vim...@go...> - 2012-03-05 13:35:25
|
thanks! Actually it also works with gnuplot 4.5 and epslatex I have now only this silly question that the axes and labels etc are gone, since they are in black... how do I change the colour of those to, say, white, to make them visible? thanks again On 5 March 2012 12:32, t.sefzick <t.s...@fz...> wrote: > i just found out that this option is new, so you need > gnuplot 4.6 rc1 or the development version. > > the syntax is: > > set terminal postscript eps background rgb 'red' > > On Sun, Mar 04, 2012 at 05:02:02PM +0100, Pau wrote: >> ok... so what would be the command in the eps case? give me an example >> please... that way I can make a diff and see what happens >> >> On 04/03/2012, Thomas Sefzick <t.s...@fz...> wrote: >> > Pau <vim.unix <at> googlemail.com> writes: >> > >> >> >> >> Hi, >> >> >> >> I have done my homework and googled here and there and did not find >> >> the answer... >> >> >> >> How could I change the background of the plotting area from white to, >> >> say, black? I do not mean the gnuplot window, but the resulting eps... >> >> >> >> I am sorry if this is a trivial question... >> >> >> >> thanks >> > >> > when using the terminal 'postscript eps' with the 'background' >> > option, then the background will be colored using postscript >> > commands, so the eps file will contain the background color. >> > >> > but when using 'epslatex' the background will be colored using >> > latex commands, i.e. the eps file will not contain any background >> > color. >> > >> > >> > ------------------------------------------------------------------------------ >> > Virtualization & Cloud Management Using Capacity Planning >> > Cloud computing makes use of virtualization - but cloud computing >> > also focuses on allowing computing to be delivered as a service. >> > http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> > _______________________________________________ >> > gnuplot-info mailing list >> > gnu...@li... >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > _____ _ _ ___ __ __ _ ___ > |_ _| |_| |/ _ \| \/ | / \ / __| Thomas Sefzick > |_|_| _ | (_) | |\/| |/ A \\__ \ Forschungszentrum Juelich > /|_|_|_| |_|\___/|_| |_|_/-\_____/ D-52425 Juelich > | (___ ____ _______ ___ ___ _ __ Germany > \___ \| __/| __/_ /|_ _|/ __| |/ / phone: +49-2461-61-4337 > ____) | _| | _| / /_ | |( (__| ( fax: -3930 > |_____/|___||_| /____|___|\___|_|\_\ email: t.s...@fz... > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ------------------------------------------------------------------------------- > ------------------------------------------------------------------------------- > Forschungszentrum Juelich GmbH > 52425 Juelich > Sitz der Gesellschaft: Juelich > Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 > Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher > Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), > Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, > Prof. Dr. Sebastian M. Schmidt > ------------------------------------------------------------------------------- > ------------------------------------------------------------------------------- > > Kennen Sie schon unsere app? http://www.fz-juelich.de/app |
|
From: Jefferson S. E. P. <st...@gm...> - 2012-03-05 15:16:50
|
With textcolor rgb "white" set xlabel textcolor rgb "white" "x" []s Stafusa On Mon, Mar 5, 2012 at 2:35 PM, Pau <vim...@go...> wrote: > thanks! > > Actually it also works with gnuplot 4.5 and epslatex > > I have now only this silly question that the axes and labels etc are > gone, since they are in black... how do I change the colour of those > to, say, white, to make them visible? > > thanks again > > > On 5 March 2012 12:32, t.sefzick <t.s...@fz...> wrote: >> i just found out that this option is new, so you need >> gnuplot 4.6 rc1 or the development version. >> >> the syntax is: >> >> set terminal postscript eps background rgb 'red' >> >> On Sun, Mar 04, 2012 at 05:02:02PM +0100, Pau wrote: >>> ok... so what would be the command in the eps case? give me an example >>> please... that way I can make a diff and see what happens >>> >>> On 04/03/2012, Thomas Sefzick <t.s...@fz...> wrote: >>> > Pau <vim.unix <at> googlemail.com> writes: >>> > >>> >> >>> >> Hi, >>> >> >>> >> I have done my homework and googled here and there and did not find >>> >> the answer... >>> >> >>> >> How could I change the background of the plotting area from white to, >>> >> say, black? I do not mean the gnuplot window, but the resulting eps... >>> >> >>> >> I am sorry if this is a trivial question... >>> >> >>> >> thanks >>> > >>> > when using the terminal 'postscript eps' with the 'background' >>> > option, then the background will be colored using postscript >>> > commands, so the eps file will contain the background color. >>> > >>> > but when using 'epslatex' the background will be colored using >>> > latex commands, i.e. the eps file will not contain any background >>> > color. >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > Virtualization & Cloud Management Using Capacity Planning >>> > Cloud computing makes use of virtualization - but cloud computing >>> > also focuses on allowing computing to be delivered as a service. >>> > http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> > _______________________________________________ >>> > gnuplot-info mailing list >>> > gnu...@li... >>> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info >>> > >> >> -- >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> _____ _ _ ___ __ __ _ ___ >> |_ _| |_| |/ _ \| \/ | / \ / __| Thomas Sefzick >> |_|_| _ | (_) | |\/| |/ A \\__ \ Forschungszentrum Juelich >> /|_|_|_| |_|\___/|_| |_|_/-\_____/ D-52425 Juelich >> | (___ ____ _______ ___ ___ _ __ Germany >> \___ \| __/| __/_ /|_ _|/ __| |/ / phone: +49-2461-61-4337 >> ____) | _| | _| / /_ | |( (__| ( fax: -3930 >> |_____/|___||_| /____|___|\___|_|\_\ email: t.s...@fz... >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> ------------------------------------------------------------------------------- >> ------------------------------------------------------------------------------- >> Forschungszentrum Juelich GmbH >> 52425 Juelich >> Sitz der Gesellschaft: Juelich >> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 >> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher >> Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), >> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, >> Prof. Dr. Sebastian M. Schmidt >> ------------------------------------------------------------------------------- >> ------------------------------------------------------------------------------- >> >> Kennen Sie schon unsere app? http://www.fz-juelich.de/app > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Pau <vim...@go...> - 2012-03-05 17:06:34
|
Thanks, but that does not really work with epslatex ... the labels seem to be dark grey instead of white But in any case I thought that the background color would be limited to the plotting area, not to all of the plot... Is it possible to, say, for instance, draw a black square that covers all of the plotting area and then replot over that? thanks |
|
From: Jefferson S. E. P. <st...@gm...> - 2012-03-06 10:04:54
|
Sorry, I have no experience with epslatex. With "postscript eps" the following works: set object 1 rectangle front from -10,-1.5 to 10,1.5 fc rgb "black" behind plot sin(x) linecolor rgb "white" Hope that helps. []s Stafusa On Mon, Mar 5, 2012 at 6:06 PM, Pau <vim...@go...> wrote: > Thanks, but that does not really work with epslatex ... the labels > seem to be dark grey instead of white > > But in any case I thought that the background color would be limited > to the plotting area, not to all of the plot... > > Is it possible to, say, for instance, draw a black square that covers > all of the plotting area and then replot over that? > > thanks > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Pau <vim...@go...> - 2012-03-06 12:30:34
|
Hi Jefferson, this worked like a charm! Thanks a lot!!!!! Pau On 6 March 2012 11:04, Jefferson Stafusa E. Portela <st...@gm...> wrote: > Sorry, I have no experience with epslatex. With "postscript eps" the > following works: > > set object 1 rectangle front from -10,-1.5 to 10,1.5 fc rgb "black" behind > plot sin(x) linecolor rgb "white" > > Hope that helps. > > []s > Stafusa > > > On Mon, Mar 5, 2012 at 6:06 PM, Pau <vim...@go...> wrote: >> Thanks, but that does not really work with epslatex ... the labels >> seem to be dark grey instead of white >> >> But in any case I thought that the background color would be limited >> to the plotting area, not to all of the plot... >> >> Is it possible to, say, for instance, draw a black square that covers >> all of the plotting area and then replot over that? >> >> thanks >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> gnuplot-info mailing list >> gnu...@li... >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Pau <vim...@go...> - 2012-03-06 21:40:59
|
Last question, I swear... I am trying to add a small text in the plotting area like this set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind set label textcolor rgb "white" "HOLA" at -20,-25 splot "'$1'" binary record=384x128 format="%double" u ($2*sin($1)):($2*cos($1)):(log10($3)) notitle but I cannot see the HOLA anywhere... What is wrong? thanks! On 6 March 2012 13:30, Pau <vim...@go...> wrote: > Hi Jefferson, > > this worked like a charm! Thanks a lot!!!!! > > Pau > > On 6 March 2012 11:04, Jefferson Stafusa E. Portela <st...@gm...> wrote: >> Sorry, I have no experience with epslatex. With "postscript eps" the >> following works: >> >> set object 1 rectangle front from -10,-1.5 to 10,1.5 fc rgb "black" behind >> plot sin(x) linecolor rgb "white" >> >> Hope that helps. >> >> []s >> Stafusa >> >> >> On Mon, Mar 5, 2012 at 6:06 PM, Pau <vim...@go...> wrote: >>> Thanks, but that does not really work with epslatex ... the labels >>> seem to be dark grey instead of white >>> >>> But in any case I thought that the background color would be limited >>> to the plotting area, not to all of the plot... >>> >>> Is it possible to, say, for instance, draw a black square that covers >>> all of the plotting area and then replot over that? >>> >>> thanks >>> >>> ------------------------------------------------------------------------------ >>> Try before you buy = See our experts in action! >>> The most comprehensive online learning library for Microsoft developers >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> Metro Style Apps, more. Free future releases when you subscribe now! >>> http://p.sf.net/sfu/learndevnow-dev2 >>> _______________________________________________ >>> gnuplot-info mailing list >>> gnu...@li... >>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Jefferson S. E. P. <st...@gm...> - 2012-03-06 22:49:13
|
I don't have your data to test your specific example, but that works normally: set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind set label textcolor rgb "white" "HOLA" at -5,-0.5 plot sin(x) linecolor rgb "white" You're sure the point -20,-25 is in your plot? If you put the label outside the plot it'll be invisible, of course. If that's not the problem, I can't think now of anything else. []s Stafusa On Tue, Mar 6, 2012 at 10:40 PM, Pau <vim...@go...> wrote: > Last question, I swear... > > I am trying to add a small text in the plotting area like this > > set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind > set label textcolor rgb "white" "HOLA" at -20,-25 > splot "'$1'" binary record=384x128 format="%double" u > ($2*sin($1)):($2*cos($1)):(log10($3)) notitle > > but I cannot see the HOLA anywhere... > > What is wrong? > > thanks! > > > On 6 March 2012 13:30, Pau <vim...@go...> wrote: >> Hi Jefferson, >> >> this worked like a charm! Thanks a lot!!!!! >> >> Pau >> >> On 6 March 2012 11:04, Jefferson Stafusa E. Portela <st...@gm...> wrote: >>> Sorry, I have no experience with epslatex. With "postscript eps" the >>> following works: >>> >>> set object 1 rectangle front from -10,-1.5 to 10,1.5 fc rgb "black" behind >>> plot sin(x) linecolor rgb "white" >>> >>> Hope that helps. >>> >>> []s >>> Stafusa >>> >>> >>> On Mon, Mar 5, 2012 at 6:06 PM, Pau <vim...@go...> wrote: >>>> Thanks, but that does not really work with epslatex ... the labels >>>> seem to be dark grey instead of white >>>> >>>> But in any case I thought that the background color would be limited >>>> to the plotting area, not to all of the plot... >>>> >>>> Is it possible to, say, for instance, draw a black square that covers >>>> all of the plotting area and then replot over that? >>>> >>>> thanks >>>> >>>> ------------------------------------------------------------------------------ >>>> Try before you buy = See our experts in action! >>>> The most comprehensive online learning library for Microsoft developers >>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>>> Metro Style Apps, more. Free future releases when you subscribe now! >>>> http://p.sf.net/sfu/learndevnow-dev2 >>>> _______________________________________________ >>>> gnuplot-info mailing list >>>> gnu...@li... >>>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Pau <vim...@go...> - 2012-03-06 23:09:26
|
thanks again for the quick answer.... I made sure it's within the plotting limits but somehow it does not show up You can try my data, if you wish http://www.2shared.com/file/TUplOI5P/GasDensityDisc_80.html The script I was using with gnuplot is ============ set terminal epslatex color set output "output.tex" set size square set xlabel textcolor rgb "white" "R" set ylabel textcolor rgb "white" "R" set mxtics 5 set mytics 5 set tics out set palette defined ( 0 "black", 1 "black", 2 "blue", 3 "blue", 4 "orange", 5 "red", 6 "yellow" ) set pm3d map #set autoscale fix set xrange [-30:30] set yrange [-30:30] set cblabel "${\\rm log}_{10} \\, \\left( \\rho_{\\rm gas} \\right)$" set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind set label textcolor rgb "white" "HOLA" at -10,-10 splot "'$1'" binary record=384x128 format="%double" u ($2*sin($1)):($2*cos($1)):(log10($3)) notitle set terminal x11 ============ thanks again! On 6 March 2012 23:48, Jefferson Stafusa E. Portela <st...@gm...> wrote: > I don't have your data to test your specific example, but that works normally: > > set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind > set label textcolor rgb "white" "HOLA" at -5,-0.5 > plot sin(x) linecolor rgb "white" > > You're sure the point -20,-25 is in your plot? If you put the label > outside the plot it'll be invisible, of course. If that's not the > problem, I can't think now of anything else. > > []s > Stafusa |
|
From: Pau <vim...@go...> - 2012-03-06 23:10:20
|
PS: Sorry .... $1 is the argument to pass, namely the data you will find on that page On 7 March 2012 00:09, Pau <vim...@go...> wrote: > thanks again for the quick answer.... > > I made sure it's within the plotting limits but somehow it does not show up > > You can try my data, if you wish > > http://www.2shared.com/file/TUplOI5P/GasDensityDisc_80.html > > The script I was using with gnuplot is > > ============ > set terminal epslatex color > set output "output.tex" > set size square > set xlabel textcolor rgb "white" "R" > set ylabel textcolor rgb "white" "R" > set mxtics 5 > set mytics 5 > set tics out > set palette defined ( 0 "black", 1 "black", 2 "blue", 3 "blue", 4 > "orange", 5 "red", 6 "yellow" ) > set pm3d map > #set autoscale fix > set xrange [-30:30] > set yrange [-30:30] > set cblabel "${\\rm log}_{10} \\, \\left( \\rho_{\\rm gas} \\right)$" > set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind > set label textcolor rgb "white" "HOLA" at -10,-10 > splot "'$1'" binary record=384x128 format="%double" u > ($2*sin($1)):($2*cos($1)):(log10($3)) notitle > set terminal x11 > ============ > > thanks again! > > On 6 March 2012 23:48, Jefferson Stafusa E. Portela <st...@gm...> wrote: >> I don't have your data to test your specific example, but that works normally: >> >> set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind >> set label textcolor rgb "white" "HOLA" at -5,-0.5 >> plot sin(x) linecolor rgb "white" >> >> You're sure the point -20,-25 is in your plot? If you put the label >> outside the plot it'll be invisible, of course. If that's not the >> problem, I can't think now of anything else. >> >> []s >> Stafusa |
|
From: Jefferson S. E. P. <st...@gm...> - 2012-03-06 23:36:55
|
Ok, as I'd said, I have no experience with epslatex, so my solution
isn't elegant... but should work.
First thing is to include a "front" in your label command:
set label textcolor rgb "white" "HOLA" at -20,-20 front
Then, and here comes the ugly fix, you should edit the 'output.tex'
file and change the line:
\put(2570,1600){\makebox(0,0)[l]{\strut{}HOLA}}%
to:
\put(2570,1600){\makebox(0,0)[l]{\strut{}{\color{white}HOLA}}}%
as the gnuplot gives (at least to me) the error:
"Package color not loaded in conjunction with terminal option `colourtext'"
so the color option is ignored
I'd guess it's easy to google for that to solve this part, but now I
should go to sleep. :)
[]s
Stafusa
On Wed, Mar 7, 2012 at 12:10 AM, Pau <vim...@go...> wrote:
> PS: Sorry .... $1 is the argument to pass, namely the data you will
> find on that page
>
>
> On 7 March 2012 00:09, Pau <vim...@go...> wrote:
>> thanks again for the quick answer....
>>
>> I made sure it's within the plotting limits but somehow it does not show up
>>
>> You can try my data, if you wish
>>
>> http://www.2shared.com/file/TUplOI5P/GasDensityDisc_80.html
>>
>> The script I was using with gnuplot is
>>
>> ============
>> set terminal epslatex color
>> set output "output.tex"
>> set size square
>> set xlabel textcolor rgb "white" "R"
>> set ylabel textcolor rgb "white" "R"
>> set mxtics 5
>> set mytics 5
>> set tics out
>> set palette defined ( 0 "black", 1 "black", 2 "blue", 3 "blue", 4
>> "orange", 5 "red", 6 "yellow" )
>> set pm3d map
>> #set autoscale fix
>> set xrange [-30:30]
>> set yrange [-30:30]
>> set cblabel "${\\rm log}_{10} \\, \\left( \\rho_{\\rm gas} \\right)$"
>> set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind
>> set label textcolor rgb "white" "HOLA" at -10,-10
>> splot "'$1'" binary record=384x128 format="%double" u
>> ($2*sin($1)):($2*cos($1)):(log10($3)) notitle
>> set terminal x11
>> ============
>>
>> thanks again!
>>
>> On 6 March 2012 23:48, Jefferson Stafusa E. Portela <st...@gm...> wrote:
>>> I don't have your data to test your specific example, but that works normally:
>>>
>>> set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind
>>> set label textcolor rgb "white" "HOLA" at -5,-0.5
>>> plot sin(x) linecolor rgb "white"
>>>
>>> You're sure the point -20,-25 is in your plot? If you put the label
>>> outside the plot it'll be invisible, of course. If that's not the
>>> problem, I can't think now of anything else.
>>>
>>> []s
>>> Stafusa
|
|
From: Jefferson S. E. P. <st...@gm...> - 2012-03-06 23:43:46
|
Didn't resist googling myself. You just have to set the terminal with
a "colortext" option!
set terminal epslatex color colortext
[]s
Stafusa
On Wed, Mar 7, 2012 at 12:36 AM, Jefferson Stafusa E. Portela
<st...@gm...> wrote:
> Ok, as I'd said, I have no experience with epslatex, so my solution
> isn't elegant... but should work.
>
> First thing is to include a "front" in your label command:
> set label textcolor rgb "white" "HOLA" at -20,-20 front
>
> Then, and here comes the ugly fix, you should edit the 'output.tex'
> file and change the line:
> \put(2570,1600){\makebox(0,0)[l]{\strut{}HOLA}}%
> to:
> \put(2570,1600){\makebox(0,0)[l]{\strut{}{\color{white}HOLA}}}%
> as the gnuplot gives (at least to me) the error:
> "Package color not loaded in conjunction with terminal option `colourtext'"
> so the color option is ignored
>
> I'd guess it's easy to google for that to solve this part, but now I
> should go to sleep. :)
>
> []s
> Stafusa
>
>
> On Wed, Mar 7, 2012 at 12:10 AM, Pau <vim...@go...> wrote:
>> PS: Sorry .... $1 is the argument to pass, namely the data you will
>> find on that page
>>
>>
>> On 7 March 2012 00:09, Pau <vim...@go...> wrote:
>>> thanks again for the quick answer....
>>>
>>> I made sure it's within the plotting limits but somehow it does not show up
>>>
>>> You can try my data, if you wish
>>>
>>> http://www.2shared.com/file/TUplOI5P/GasDensityDisc_80.html
>>>
>>> The script I was using with gnuplot is
>>>
>>> ============
>>> set terminal epslatex color
>>> set output "output.tex"
>>> set size square
>>> set xlabel textcolor rgb "white" "R"
>>> set ylabel textcolor rgb "white" "R"
>>> set mxtics 5
>>> set mytics 5
>>> set tics out
>>> set palette defined ( 0 "black", 1 "black", 2 "blue", 3 "blue", 4
>>> "orange", 5 "red", 6 "yellow" )
>>> set pm3d map
>>> #set autoscale fix
>>> set xrange [-30:30]
>>> set yrange [-30:30]
>>> set cblabel "${\\rm log}_{10} \\, \\left( \\rho_{\\rm gas} \\right)$"
>>> set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind
>>> set label textcolor rgb "white" "HOLA" at -10,-10
>>> splot "'$1'" binary record=384x128 format="%double" u
>>> ($2*sin($1)):($2*cos($1)):(log10($3)) notitle
>>> set terminal x11
>>> ============
>>>
>>> thanks again!
>>>
>>> On 6 March 2012 23:48, Jefferson Stafusa E. Portela <st...@gm...> wrote:
>>>> I don't have your data to test your specific example, but that works normally:
>>>>
>>>> set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind
>>>> set label textcolor rgb "white" "HOLA" at -5,-0.5
>>>> plot sin(x) linecolor rgb "white"
>>>>
>>>> You're sure the point -20,-25 is in your plot? If you put the label
>>>> outside the plot it'll be invisible, of course. If that's not the
>>>> problem, I can't think now of anything else.
>>>>
>>>> []s
>>>> Stafusa
|
|
From: Pau <vim...@go...> - 2012-03-07 19:32:37
|
YES!
The only point is that the label must be included just before the splot command
Thanks a lot...
On 7 March 2012 00:43, Jefferson Stafusa E. Portela <st...@gm...> wrote:
> Didn't resist googling myself. You just have to set the terminal with
> a "colortext" option!
>
> set terminal epslatex color colortext
>
> []s
> Stafusa
>
>
> On Wed, Mar 7, 2012 at 12:36 AM, Jefferson Stafusa E. Portela
> <st...@gm...> wrote:
>> Ok, as I'd said, I have no experience with epslatex, so my solution
>> isn't elegant... but should work.
>>
>> First thing is to include a "front" in your label command:
>> set label textcolor rgb "white" "HOLA" at -20,-20 front
>>
>> Then, and here comes the ugly fix, you should edit the 'output.tex'
>> file and change the line:
>> \put(2570,1600){\makebox(0,0)[l]{\strut{}HOLA}}%
>> to:
>> \put(2570,1600){\makebox(0,0)[l]{\strut{}{\color{white}HOLA}}}%
>> as the gnuplot gives (at least to me) the error:
>> "Package color not loaded in conjunction with terminal option `colourtext'"
>> so the color option is ignored
>>
>> I'd guess it's easy to google for that to solve this part, but now I
>> should go to sleep. :)
>>
>> []s
>> Stafusa
>>
>>
>> On Wed, Mar 7, 2012 at 12:10 AM, Pau <vim...@go...> wrote:
>>> PS: Sorry .... $1 is the argument to pass, namely the data you will
>>> find on that page
>>>
>>>
>>> On 7 March 2012 00:09, Pau <vim...@go...> wrote:
>>>> thanks again for the quick answer....
>>>>
>>>> I made sure it's within the plotting limits but somehow it does not show up
>>>>
>>>> You can try my data, if you wish
>>>>
>>>> http://www.2shared.com/file/TUplOI5P/GasDensityDisc_80.html
>>>>
>>>> The script I was using with gnuplot is
>>>>
>>>> ============
>>>> set terminal epslatex color
>>>> set output "output.tex"
>>>> set size square
>>>> set xlabel textcolor rgb "white" "R"
>>>> set ylabel textcolor rgb "white" "R"
>>>> set mxtics 5
>>>> set mytics 5
>>>> set tics out
>>>> set palette defined ( 0 "black", 1 "black", 2 "blue", 3 "blue", 4
>>>> "orange", 5 "red", 6 "yellow" )
>>>> set pm3d map
>>>> #set autoscale fix
>>>> set xrange [-30:30]
>>>> set yrange [-30:30]
>>>> set cblabel "${\\rm log}_{10} \\, \\left( \\rho_{\\rm gas} \\right)$"
>>>> set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind
>>>> set label textcolor rgb "white" "HOLA" at -10,-10
>>>> splot "'$1'" binary record=384x128 format="%double" u
>>>> ($2*sin($1)):($2*cos($1)):(log10($3)) notitle
>>>> set terminal x11
>>>> ============
>>>>
>>>> thanks again!
>>>>
>>>> On 6 March 2012 23:48, Jefferson Stafusa E. Portela <st...@gm...> wrote:
>>>>> I don't have your data to test your specific example, but that works normally:
>>>>>
>>>>> set object 1 rectangle front from -30,-30 to 30,30 fc rgb "black" behind
>>>>> set label textcolor rgb "white" "HOLA" at -5,-0.5
>>>>> plot sin(x) linecolor rgb "white"
>>>>>
>>>>> You're sure the point -20,-25 is in your plot? If you put the label
>>>>> outside the plot it'll be invisible, of course. If that's not the
>>>>> problem, I can't think now of anything else.
>>>>>
>>>>> []s
>>>>> Stafusa
|