help-octave
[Top][All Lists]
Advanced

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

Re: Problems adapting Visual Style of Octave Graph


From: Michael Goffioul
Subject: Re: Problems adapting Visual Style of Octave Graph
Date: Fri, 31 May 2013 07:10:53 -0400

On Fri, May 31, 2013 at 1:44 AM, Alaak <address@hidden> wrote:
Hi,

I got several problems adapting my Octave plots to some style
requirements and would like to ask this list if there are any known
solutions. Unfortunately I was unable to find them using Google. However
I only started using Octave for plotting this evening so I might miss
some essentials. Please enlighten me if you can. So here are my three
problems:

1. I would like to remove the upper and left ticks on the axes, without
also removing the left and lower ones.

set(gca, 'box', 'off')
 
2. I would like to change the line style of the grid. Using
set(gca(),'gridlinestyle','-'); seems not to do anything. Also set(0,
'defaultaxesgridlinestyle', '-') does nothing.

the 'gridlinestyle' property should work. Maybe it's a bug. Are you using gnuplot or FLTK graphics toolkit? Try to call "graphics_toolkit fltk" before creating your first plot window.
 
3. I would like to change the color of the axes. Since there seems to be
no linecolor property for them I tried to get a handel on them and set
the color property directly via set(get(gca(),
'children')(2),'color',[0.5 0.5 0.5]); Doesn't work though. I also
tried: set(gca(),'colororder',[0.5 0.5 0.5]) and
set(gca(),'defaultlinecolor','blue')

Axes color is controlled with the properties xcolor, ycolor and zcolor.

Michael.


reply via email to

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