[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't set tick label for 3D graphs
From: |
Mike Miller |
Subject: |
Re: Can't set tick label for 3D graphs |
Date: |
Wed, 20 Jul 2016 14:39:39 -0700 |
User-agent: |
Mutt/1.6.0 (2016-04-01) |
On Wed, Jul 20, 2016 at 11:16:35 -0700, Swiss_Knight wrote:
> Hello,
> Yes I mean x,y,z ticklabel. :)
> I got this return if I try to set on of these :
> > /error: set: unknown text property xticklabel/
>
> And if I check properties of, for example, the x axis (of a surf() graph)
> with get(x_axis_handle) I can't even see the word 'label' in there :
> > /ans =
>
> scalar structure containing the fields:
>
> beingdeleted = off
> busyaction = queue
> buttondownfcn = [](0x0)
> children = [](0x1)
> clipping = off
> createfcn = [](0x0)
> deletefcn = [](0x0)
> handlevisibility = off
> hittest = on
> interruptible = on
> parent = -144.33
> selected = off
> selectionhighlight = on
> tag =
> type = text
> uicontextmenu = [](0x0)
> userdata = [](0x0)
> visible = on
> __modified__ = on
> backgroundcolor = none
> color =
>
> 0 0 0
>
> displayname =
> edgecolor = none
> editing = off
> erasemode = normal
> extent =
>
> 6.1941 4.4047 0.34556 0.034138
>
> fontangle = normal
> fontname = *
> fontsize = 10
> fontunits = points
> fontweight = normal
> horizontalalignment = left
> interpreter = tex
> linestyle = -
> linewidth = 0.5
> margin = 2
> position =
>
> 5.6389 3.1987 -17.445
>
> rotation = 0
> string = Ig
> units = data
> verticalalignment = top/
>
> Here is the graph generation commands :
> /figure(1);
> clf;
> surf(XX,YY,Incertitude');
> title("Max Incertitude as function of (x,y)");
> cx1=xlabel("X param");
> cy1=ylabel("Y param");
> cz1=zlabel("I value");
> axis([min(X) max(X) min(Y) max(Y)]);
> #set(cx1,"xticklabel",[X]);/
>
>
> XX and YY are the results of a meshgrid command on x and y, of course.
The return value of xlabel is not a handle to the axes object. What
you're looking at are handles to the labels, which are text objects.
What you want is either
ax = gca ();
or
ax = get (cx1, "parent");
and then
set (ax, "xticklabel", ...
set (ax, "yticklabel", ...
set (ax, "zticklabel", ...
--
mike