0

Take a look

Code used:

x =

   0.17860   0.85981   0.69683   0.56564   0.55712   0.68452   0.83126   0.11530   0.28621   0.75909

>>y
y =

   4.28759   1.07059   1.53263   7.99441   0.98204   3.45242   4.97739   3.38106   4.70819   1.12955

>>plot(x, y)

here's the results

>>version
ans = 4.2.2
>>graphics_toolkit
ans = qt

$ gnuplot --version
gnuplot 5.2 patchlevel 2

i am new to octave but i feel it is not right

4
  • Please edit your question to include the outputs (from the octave console) of the commands version and graphics_toolkit and (from the Ubuntu terminal) gnuplot --version Mar 28, 2019 at 18:21
  • Hmm so it seems like I get the same: try setting graphics_toolkit('fltk') or graphics_toolkit('gnuplot') as suggested here Plot generated in Octave is fully black (both worked for me) Mar 28, 2019 at 19:01
  • 1
    ... or if you want to stick with the qt engine, you can export LIBGL_ALWAYS_SOFTWARE=1 into your environment before running octave as noted here savannah.gnu.org/bugs/?51442 Mar 28, 2019 at 19:05
  • well, that worked for me Mar 28, 2019 at 19:13

1 Answer 1

0

Add one of these commands in .octaverc file in you home directory (create if not already there):

graphics_toolkit("gnuplot"); 
graphics_toolkit("qt"); 
graphics_toolkit("fltk"); 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .