<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 16/07/2015 04:53, jaipur a écrit :<br>
</div>
<blockquote cite="mid:1437015234851-4032585.post@n3.nabble.com"
type="cite">
<pre wrap="">I'm creating a picture of a vector to demonstrate vector rotation for study.
I have made the picture below by the following code.
I'd like to make 3D picture in which zero points of x, y, z-axes are always
fixed to one point indicated as red circle (the origin of axes), while
rotating a picture by mouse's right button down and moving.
How shall I do it?
xarrows([0 1],[0 1],[0 1]);
h1=gca();
h1.axes_visible='on';
h1.grid=[1 1 1];
h1.box='on';
h1.x_location='origin';
h1.y_location='origin';
xlabel('X'); ylabel('Y'); zlabel('Z');
There is not 'z_location' in axes properties. Is that influence this
problem?</pre>
</blockquote>
.<br>
Yes, there are actually 2 issues here:<br>
1) indeed, a .z_location is missing. Here (Z) goes through (1,1,.)
and there is no way to force it passing through (0,0,.)<br>
2) .x_location='origin' forces (X) to pass through (.,0,.) instead
of (., 0, 0), i.e.: it should pass through z=0, not only through
y=0.<br>
Same thing for .y_location="origin", that should pass through
(0,.,0) instead of (0,.,.)<br>
<br>
This bug and missing features are not yet reported in Bugzilla.<br>
However, Adrien made a nice proposal
<a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/13433">http://bugzilla.scilab.org/13433</a> in order to generalize the "origin"
possibility:<br>
<i>"i wish the option y_location = "origin" is replaced for one that
gives the opportunity to place the y_axes at an arbitrate
coordinate on the x (and z) axis</i><i>"</i><br>
<br>
I would definitively vote for this replacement.<br>
<br>
Unfortunately, neither centering data_bounds, nor wondering about
drawaxis() (not supporting 3D), nor using "axis origin" from the
pltlib ATOMS, are able to answer to your need that is -- yet -- a
quite simple situation...<br>
<br>
Regards<br>
<br>
</body>
</html>