Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: strange behaviour of ListPlot with PlotStyle options in Mathematica 9
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
jmmv73@gmail.com

Posts: 4
Registered: 12/30/12
strange behaviour of ListPlot with PlotStyle options in Mathematica 9
Posted: Jan 5, 2013 2:17 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi there,

In Mathematica 8.0.4 both commands below show a graph in red color.


ListPlot[RandomReal[10, 20], Joined->True, PlotStyle->{{Red},{Green},{Blue}}]

ListPlot[{RandomReal[10, 20]}, Joined->True, PlotStyle->{{Red},{Green},{Blue}}]


However, in Mathematica 9.0, the first command line shows a blue graph and the second one a red graph.

I used to have my customized PlotStyle options as a list of attibutes, but when I have just one set of points to graph, Mathematica 9 picks up only the last attribute of the list instead of the first one (as I think it should be).

It seems that something changed with the new version of Mathematica about how the Plot options are read.

Regards,

Jose M. Martinez
Ph.D. Student
Department of Electronic Engineering
Universidad Tecnica Federico Santa Maria
Valparaiso, Chile



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.