comparison libinterp/corefcn/graphics.cc @ 30253:20fd3c03fd74

Add new plot marker styles '|' and '_' (bug #61350) * NEWS: Announce addition. * gl-render.cc (make_marker_list): Add instructions for drawing '|' and '_' markers. * graphics.cc (radio_values::radio_values): Add special case in constructor from string of options to parse '|||' and return value '|'. * graphics.in.h (line, patch, scatter, surface): Add '|' and '_' to marker property for graphics objects which have this property. * __pltopt__.m: Add '|' and '_' to list of possible markers in input validation. * __gnuplot_draw_axes__.m: Add FIXME note about implementing these two markers in gnuplot. There doesn't seem to be an easy way to do this as it is not one of the defined point styles.
author Rik <rik@octave.org>
date Wed, 27 Oct 2021 15:07:52 -0700
parents 805357e6b058
children cd7c824f3f22
comparison
equal deleted inserted replaced
30252:774d6edb4cae 30253:20fd3c03fd74
1313 done = true; 1313 done = true;
1314 } 1314 }
1315 1315
1316 std::string t = opt_string.substr (beg, end-beg); 1316 std::string t = opt_string.substr (beg, end-beg);
1317 1317
1318 // Might want more error checking here... 1318 // Special case for '|' symbol itself
1319 if (t.empty () && opt_string[beg] == '|')
1320 {
1321 t = '|';
1322 end++;
1323 }
1324
1325 // Might want more error checking on parsing default value...
1319 if (t[0] == '{') 1326 if (t[0] == '{')
1320 { 1327 {
1321 t = t.substr (1, t.length () - 2); 1328 t = t.substr (1, t.length () - 2);
1322 m_default_val = t; 1329 m_default_val = t;
1323 } 1330 }