From: Jos on 31 May 2010 10:08 Does anybody know how to change a line from the type 'line' to type 'area' using the set command? Example: %plot 2 lines [o]=plot(rand(10,2)); %change first line to area type set(o(1), 'type', 'area') I get: Attempt to modify a property that is read-only. And I want o(2) to remain the type 'line' and o(1) to become type 'area' while using set and not the property editor. BTW I cannot use the area command right at once
From: us on 31 May 2010 10:13 "Jos " <nospamhere(a)spamless.com> wrote in message <hu0fs3$si4$1(a)fred.mathworks.com>... > Does anybody know how to change a line from the type 'line' to type 'area' using the set command? > > Example: > %plot 2 lines > [o]=plot(rand(10,2)); > %change first line to area type > set(o(1), 'type', 'area') > > I get: Attempt to modify a property that is read-only. > > And I want o(2) to remain the type 'line' and o(1) to become type 'area' while using set and not the property editor. > > BTW I cannot use the area command right at once well... this is simply NOT possible... us
|
Pages: 1 Prev: name bars of barchart Next: print a combination of string varables and number variables |