octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42947] gnuplot doesn't color axis line and ti


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #42947] gnuplot doesn't color axis line and tick marks with axis color property
Date: Mon, 28 Dec 2015 01:39:05 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9

Follow-up Comment #3, bug #42947 (project octave):

I found a clumsy solution which might work if __gnuplot_draw_axes__ isn't
making use of "set arrow N ...", or if the arrow indexing is handled properly.
Below is a simple gnuplot scrip that colors the axes for 2D plot.


reset
unset key

set style line 1 linecolor rgb "blue"    linewidth 1 dashtype solid pointtype
1 pointsize default pointinterval 0
set style line 2 linecolor rgb "#006400" linewidth 1 dashtype solid pointtype
1 pointsize default pointinterval 0
set style line 3 linecolor rgb "red"     linewidth 1 dashtype solid pointtype
1 pointsize default pointinterval 0

set border 0
set arrow 1 nohead nofilled front lc rgb "#006400" linewidth 1 dashtype solid
from graph 0,0,0 to graph 1,0,0
set arrow 2 nohead nofilled front lc rgb "blue"  linewidth 1 dashtype solid
from graph 0,0,0 to graph 0,1,0
set arrow 3 nohead nofilled front lc rgb "black" linewidth 1 dashtype solid
from graph 0,1,0 to graph 1,1,0
set arrow 4 nohead nofilled front lc rgb "red"   linewidth 1 dashtype solid
from graph 1,0,0 to graph 1,1,0

set y2tics nomirror textcolor rgb "red" format "10^{%T}"
set ytics nomirror textcolor rgb "blue" format "%.1f"
set xtics nomirror textcolor rgb "#006400" format "%g"
set xlabel 'x' textcolor rgb "#006400"
set ylabel 'sin(x)' textcolor rgb "blue"
set y2label 'exp(x)|sin(x)|' textcolor rgb "red"
set log y2
set sample 1000
plot sin(x) with lines ls 1 axes x1y1, exp(x)*abs(sin(x)) with lines ls 3 axes
x1y2


This example creates a blue y-axis, a red y2-axis, a green x-axis, and a black
x2-axis.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42947>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]