Single vs Double Quotes control characters plot titles

gOS bkirklin at quantapoint.com
Tue May 13 09:32:16 CDT 2008


I know GNU plot is being phased out, but I think this goes a bit deeper than
GNU plot. Run both of these without jhandles and pay attention to the title:

function ptest1
  a = 1:100;
  b = 1:100;
  
  plot(a,b)
  title('This is \n a test')  
  
end

- - - - - - - - - - - - - - - - - - - 

function ptest2
  a = 1:100;
  b = 1:100;
  
  plot(a,b)
  title("This is \n a test")  
  
end

- - - - - - - - - - - -

Output:
Test1

This is n a test

Test2

This is
a test

- - - - - - - - - - 

I do not think using double or single quotes should have this kind of an
impact on formatting, and I would consider it a bug.
-- 
View this message in context: http://www.nabble.com/Single-vs-Double-Quotes-control-characters-plot-titles-tp17209992p17209992.html
Sent from the Octave - Bugs mailing list archive at Nabble.com.



More information about the Bug-octave mailing list