Thu 01 Sep 2011 06:14:45 PM UTC, comment #3:
Matlab gives ...
Personally, I prefer Octave's behavior. However, I notice that Octave allows the linewidth to have negative values.
Should there exist a method to do limits checking on properties?
Perhaps a task should be added to the "task" tracker?
|
Wed 31 Aug 2011 04:38:57 PM UTC, comment #2:
I'm retitling this bug report to reflect issue #3 which seems to exist. Simplified code to show problem.
The plot still shows a line. It would be useful if someone with Matlab could confirm what they do in this case.
One possible solution is to link linewidth with linestyle so that when linewidth is set to 0 then linestyle is set to "none".
|
Wed 31 Aug 2011 04:36:44 PM UTC, comment #1:
Issues 1 and 2 are due to a misunderstanding of the plot system. To remove lines entirely from a plot you need to set the linestyle to "none". If you want the individual points to have a shape then you need to set their marker value to something besides "none". Here is some sample code
Use "get (h)" to see the other marker properties you can set such as color and size.
For issue 2, try "help legend".
|
Fri 26 Aug 2011 09:41:23 PM UTC, original submission:
1)
set(h1,"linestyle",':') # no change on plot
set(h1,"linestyle",'^') # triangle marker plus line
set(h1,"linestyle",'.')
error: invalid value = .
error: set: invalid value for radio property "linestyle" (value = .)
how to achieve equivalent to supplying a dot to plot() ?
plot(x,y,'.'); # fine dot for each point, no line.
2)
how to set key title as per plot() :
plot(x,y,'-;key title;');
3)
setting linewidth=0 accepted but still drawn with finite width.
set(h1,"linewidth",0) # no change visible
get(h1,"linewidth")
ans = 0
|