Re: Plot Table of functions does not distinguish colors

• To: mathgroup at smc.vnet.net
• Subject: [mg102695] Re: [mg102676] Plot Table of functions does not distinguish colors
• From: Bob Hanlon <hanlonr at cox.net>
• Date: Wed, 19 Aug 2009 07:02:33 -0400 (EDT)

```Because Plot has attribute HoldAll.

Attributes[Plot]

{HoldAll,Protected}

Plot[Evaluate[Table[Sin[n x], {n, 1, 3, 1}]], {x, 0, 2 Pi},
PlotRange -> All, PlotStyle -> Thick]

Bob Hanlon

---- fd <fdimer at gmail.com> wrote:

=============
All, this seems like a simple question, but when I want to create a
table with different function as in the example

Plot[Table[Sin[n x], {n, 1, 3, 1}], {x, 0, 2 Pi}, PlotRange -> All,
PlotStyle -> Thick]

I get all three plots with the same color. If I instead write the
table manually

Plot[{Sin[x], Sin[2 x], Sin[3 x]}, {x, 0, 2 Pi},PlotStyle->Thick]

This gives a different plot with a different color for each plot.

Can anyone shed some light on why this behavior?

Best

```

• Prev by Date: Re: Newcomer Question
• Next by Date: Re: Plot Table of functions does not distinguish colors
• Previous by thread: Re: Plot Table of functions does not distinguish colors
• Next by thread: Re: Plot Table of functions does not distinguish colors
{"ft_lang_label":"__label__en","ft_lang_prob":0.7331536,"math_prob":0.46842104,"size":997,"snap":"2020-24-2020-29","text_gpt3_token_len":310,"char_repetition_ratio":0.10171198,"word_repetition_ratio":0.124223605,"special_character_ratio":0.336008,"punctuation_ratio":0.20982143,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9874003,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-06-05T18:54:24Z\",\"WARC-Record-ID\":\"<urn:uuid:ac651adc-9816-44e0-b9b1-aea6ebc6d4a2>\",\"Content-Length\":\"44335\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1a7102a3-7edc-4c84-8269-fde14c98ef69>\",\"WARC-Concurrent-To\":\"<urn:uuid:5b3b76e9-bf09-4d2d-8883-4570309d2431>\",\"WARC-IP-Address\":\"140.177.205.73\",\"WARC-Target-URI\":\"http://forums.wolfram.com/mathgroup/archive/2009/Aug/msg00511.html\",\"WARC-Payload-Digest\":\"sha1:X7ZWBBM66OY66VKBCESFDMOAQWH6AN4K\",\"WARC-Block-Digest\":\"sha1:VNUH2QPKD4UBP2LX4KZTA6ZE34AETCMI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590348502204.93_warc_CC-MAIN-20200605174158-20200605204158-00241.warc.gz\"}"}