Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7056169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:50:08+00:00 2026-05-28T03:50:08+00:00

Version 8.04 on windows. I noticed that when I have 2 data sets and

  • 0

Version 8.04 on windows.

I noticed that when I have 2 data sets and use ListPlot on them, that the points shown do not follow the color specified by PlotStyle setting for the line color itself when using Joined->True.

I just to see if may be I am not understanding the meaning of PlotStyle here.

Here is an example:

data1 = {{1, 1}, {2, 1.5}, {3, 2}};
data2 = {{1, 1.5}, {2, 2.5}, {3, 3}};
ListPlot[{data1, data2}, PlotStyle -> {Red, Blue}, Joined -> False, 
 Mesh -> All, AxesOrigin -> {0, 0}]

enter image description here

Notice that the points have the colors set correctly according to PlotStyle (red then blue).

Now when I add Joined->True, see what happens:

data1 = {{1, 1}, {2, 1.5}, {3, 2}};
data2 = {{1, 1.5}, {2, 2.5}, {3, 3}};
ListPlot[{data1, data2}, PlotStyle -> {Red, Blue}, Joined -> True, 
 Mesh -> All, AxesOrigin -> {0, 0}]

enter image description here

Now the points on the top line, which is blue have changed color to red, which is the color of the bottom line points!.

Does this make sense?

One way to overcome this is by explicitly adding PlotMarkers to give the colors to the points, like this:

data1 = {{1, 1}, {2, 1.5}, {3, 2}};
data2 = {{1, 1.5}, {2, 2.5}, {3, 3}};
ListPlot[{data1, data2}, PlotStyle -> {Red, Blue}, Joined -> True, 
 Mesh -> All, AxesOrigin -> {0, 0}, 
 PlotMarkers -> {{Graphics[{Red, Point[{0, 0}]}], 
    12}, {Graphics[{Blue, Point[{0, 0}]}], 12}}]

enter image description here

Question: Why the points change color to red in the top line (second plot above) ? and is there a simpler solution to this that what I did above?

edit(1)

trying MeshStyle -> {Red, Blue} seems to mix things also:

data1 = {{1, 1}, {2, 1.5}, {3, 2}};
data2 = {{1, 1.5}, {2, 2.5}, {3, 3}};
ListPlot[{data1, data2}, PlotStyle -> {Red, Blue}, Joined -> True, 
 AxesOrigin -> {0, 0}, Mesh -> All, MeshStyle -> {Red, Blue}]

enter image description here

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:50:09+00:00Added an answer on May 28, 2026 at 3:50 am

    I think it’s the Mesh->All which is messing things up. You can either specify the MeshStyle or just leave it off, and set PlotMarkers->Automatic.

    ListPlot[{data1,data2},PlotStyle->{Red,Blue},Joined->True,
     PlotMarkers->Automatic,AxesOrigin->{0,0}]
    

    Mathematica graphics

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The 64 bits version of Windows Server does not came with the ODBC DBF
I need to find some strings that the current version of Windows is using.
I would like my application to look similar to that of the Windows version:
I just noticed that by instance famous application like chrome didn't have any 64
I've noticed that IntelliJ IDEA 9 runs as a 32-bit process in Windows 2003
I have a Java applet that downloads data from where it's hosted, using HTTP.
I have noticed that it is possible to register for example v1.0.0.0 of an
I've noticed slight spacing differences in HTML rendering between these versions in Windows XP.
How do you check the windows version in Win32 at runtime?
I've got a Polish version of Windows installed and therefore I get exception messages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.