2

I am using Octave under Ubuntu, connected by ssh from another computer. All I want to see is the scripts commands, because for the plots I save them in .png form for opening later.

However, everytime I order the software to make a plot, like in:

clf ();
surface (tx, ty, telog);
filename=sprintf('surfaceLOG-%04d',k);
saveas (1, filename, "png");

I obtain an ascii of the plot in the Terminal too, which doesnt let me see the previous output, like in:

+---------------------------------------------------------------+
|        +-------------------------------------+                |
|     14 |-+  |     |    |   |    |    |    |+-|     +++25      |
|        |    +     +    +   +    +    +    +  |     ++|        |
|     12 |-+                                 +-|     |||        |
|        |                                     |     ||+20      |
|        |                                     |     |||        |
|     10 |-+                                 +-|     |||        |
|        |                                     |     ||+15      |
|  y ax8s|-+                                 +-|     |||        |
|      6 |-+                                 +-|     |||        |
|        |                                     |     ||+10      |
|      4 |-+                                 +-|     |||        |
|        |                                     |     |||        |
|        |                                     |     ||+5       |
|      2 |-+  +     +    +   +    +    +    ++-|     |||        |
|        |    |     |    |   |    |    |    |  |     |||        |
|      0 +-------------------------------------+     +++        |
|        0    2     4    6   8   10   12   14                   |
+---------------------------------------------------------------+

So my question is how to supress this ascii plot output.

Using:

surface (tx, ty, telog,'visible','off');

does not work since it makes an empty plot in the picture file.

1 Answer 1

4

You should set the visibility of the figure before and not part of the call to surface. The following will work (octave 3.8.2):

graphics_toolkit gnuplot
figure ("visible", "off");
[X, Y, Z] = peaks ();
surface (X, Y, Z)
h = surface (X, Y, Z);
saveas (h, "surface.png")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.