Force x-coordinate with graphviz - coordinates

I'm wondering if, using graphviz, there is a way to force the x-position of a node and only the x-position, the y-position should be figured out. I know the pos attribute can be used to force both x & y but I can't find if it can be used only on x.
I am aware a very similar (y instead of x) has already been posted (How to force Y coordinate in graphviz) but with no answer.
Thanks in advance.

Related

Is it posssible to find an x/y coordinate without Angles? i need this for a target locator in a Scratch Program

My scratch project:https://scratch.mit.edu/projects/657133771
i need a triangulation/trilateralation equation for a target locator. otherwise the tank is just stupid.
Try using the Distance Formula (Pythagorean Theorem) to calculate the distance between points. Simply use:
distance = sqrt( (x2-x1)^2 + (y2-y1)^2 )
Make the x and y change at the same time. It will give an angle effect, and your sprite does not have to turn. Not exactly a formula, but if you match up the x and y changes in the right way, you get different angles.

Best way to find the top most left coordinate point in set of Cartesian coordinates?

I have a set of cartesian coordinates. What is the best way to find the top most left coordinate?
My approach is to find max Y and then corresponding lowest X coordinate. (Since there could be multiple points with same Ymax). This works fine but wonders if there are other cute methods?
If your x and y coordinates are not sorted, then you have to check all the input coordinates - at first your y values (for topmost, the higher the better) and then all corresponding x values for such y, but now you look for minimal x.

Changing axis values on Matlab figure/graph output?

I have a graph that automatically has x and y axis/values. However, I want to completely get rid of those and put into my own custom values, without changing the appearance of the graph at all.
Currently the x and y scales are pixel coordinates of the image, but I want to get rid of it and make them into centimeters so someone can better understand how large the image is that they are looking at...
You can change the units of an axes with this command:
set(YourAxesHandles,'Units','centimeters');
and then play around with the scaling/values/whatever you want:
set(YourAxesHandles,'XMin',[min max]);
set(YourAxesHandles,'YMin',[min max]);
set(YourAxesHandles,'XTick',[min:increment:max]);
and so on. Is that what you meant?
I found how to do this, check it out if you want:
% I want 8 intervals, so I divide 272 (number of pixels in X)
% by 34 to get 8 splits
set(gca,'XTick',[0:34:272])
% specify the label displayed at each tick mark
set(gca,'XTickLabel',[-4:4])
Thanks a lot, you made me look in the right direction.

Gnuplot how plot 3d figures in a style similar to Matlab

I found gnuplot's 3d figure not very attractive.
Is there a way to product a figure looks like this one:
The key points are:
1) less density of x and y tics
2) grids
3) tics bars toward outside the figure.
Here is what I have tried (dowwnload the script here: https://dl.dropboxusercontent.com/u/45318932/gnuplot2.plt):
I know how to manually set x/y tics but I do not want to as it is not a general solution. Unless you can set x and y tics dynamics according to your data.
Can you help me finish the second figure in the style of the first one (matlab)?
This is the best I can get, using gnuplot:
The code is here: https://github.com/mleoking/JavaGnuplotHybrid/blob/master/JavaGnuplotHybrid/src/org/leores/plot/JGnuplotDemo.java

How to force Y coordinate in graphviz

Is there a way to force y position, in pixel or inche, in graphviz using dot.
The rank=same is not suitable for my case.
The [pos="x,y!"] with -Kfdp could be a way, but I want to let GraphViz determines the X position.
Thanks