Mercurial > octave
comparison scripts/plot/util/private/__gnuplot_draw_axes__.m @ 27970:9e769371fb45
maint: merge stable to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 Jan 2020 09:10:37 -0600 |
parents | c20b7290c778 6628a284d56d |
children | 1379ebcb00c3 aabebd95488b |
comparison
equal
deleted
inserted
replaced
27969:a9a8699a3749 | 27970:9e769371fb45 |
---|---|
1858 function tick (axischar, color, tickdir, mirrorstr) | 1858 function tick (axischar, color, tickdir, mirrorstr) |
1859 if (isnumeric (color)) | 1859 if (isnumeric (color)) |
1860 if (length (color) == 3) | 1860 if (length (color) == 3) |
1861 colorspec = sprintf ('rgb "#%02x%02x%02x"', round (255*color)); | 1861 colorspec = sprintf ('rgb "#%02x%02x%02x"', round (255*color)); |
1862 else | 1862 else |
1863 colorspec = sprintf ("palatte %d", round (color)); | 1863 colorspec = sprintf ("palette %d", round (color)); |
1864 endif | 1864 endif |
1865 else | 1865 else |
1866 colorspec = sprintf ('"%s"', color); | 1866 colorspec = sprintf ('"%s"', color); |
1867 endif | 1867 endif |
1868 fprintf (plot_stream, "set %ctics %s %s textcolor %s\n", | 1868 fprintf (plot_stream, "set %ctics %s %s textcolor %s\n", |