Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graph Formatting Tools For Octave

I know that Matlab allows for you to format the graph after its created through the interface. However there isn't the same features in Octave. Is there a tool that goes between Octave and GnuPlot? If there isn't such a tool, is there a tool that will generate the formatting options?

I've heard of EasyPlot, but it isn't free.

like image 676
monksy Avatar asked Dec 28 '09 00:12

monksy


People also ask

What does octave use for plotting?

When plotting in Octave you plot points having their x -values stored in one vector and the y -values in another vector. The two vectors must be the same size. Octave inserts lines between the points.

How do you plot points on a graph in octave?

This command will plot the data in the variable b , with points displayed as ' * ' and a marker size of 10. t = 0:0.1:6.3; plot (t, cos(t), "-;cos(t);", t, sin(t), "-b;sin(t);"); This will plot the cosine and sine functions and label them accordingly in the legend.

How do you plot multiple graphs in octave?

Octave can display more than one plot in a single figure. The simplest way to do this is to use the subplot function to divide the plot area into a series of subplot windows that are indexed by an integer. For example, subplot (2, 1, 1) fplot (@sin, [-10, 10]); subplot (2, 1, 2) fplot (@cos, [-10, 10]);


2 Answers

I've discovered there are some formatting options on the GNU Plot graph after it has been generated through octave. If you press 'm' it's then possible to right click and get a menu with choices to format the plot (line styles/colour/background/print). However, for me it crashes a lot and changing the values doesn't seem to have much effect.

There is some other functionality by using these key presses..

  • m - allow menu on right-click
  • a - zoom to full window
  • p - previous zoom level
  • r - overlay ruler
  • g - overlay grid
  • b - toggle border
  • 1 - toggle output reading format
  • 5 - display radius measure tool (when ruler is displayed)
  • 7 - format aspect ratio (useful to get square plots to not distort scale)

These are just the ones I've found by randomly testing the keyboard (!), so this is hardly exhaustive. But hope that helps.

like image 184
wardw Avatar answered Sep 22 '22 10:09

wardw


I've used GNU plot in the past for some visualizations. I didn't find any front end interface to set things like colors or labels but it was easy enough to set some basic things on the command line. This site helped me out: http://t16web.lanl.gov/Kawano/gnuplot/intro/plotcalc-e.html

like image 25
Frank Avatar answered Sep 22 '22 10:09

Frank