How to change color of plot line?

GaryKG
GaryKG New Altair Community Member
edited November 5 in Community Q&A
In Visualizations -> Scatter / Bubble, I tried to change the color of the Linear line by going to Plot Style and even clicked on 'Color palette', but no luck.

(I also tried searching here and in the online documentation, but did not find anything. I'm sure it's something very simple that I'm missing!)

Please help.
Tagged:

Answers

  • Roland Jones_21245
    Roland Jones_21245
    Altair Employee
    Hi @GaryKG,

    Your intuition was correct in going into Plot Styles, the only thing you need to do is click on the first colour (default blue) and then select the colour you'd like. You can also change the order of default colours in the 'Color palette', for example here I've made green my first default colour. Hope this helps!


    Best,
    Roland
  • GaryKG
    GaryKG New Altair Community Member
    Hi Roland,

    Thanks for your response. However, I'm referring to the color of the Regression line. I found no way to change that from the default. Please change Regression interpolation from 'None' to 'Linear' and change the color of the line.

    Please advise.

    Thanks.
  • Roland Jones_21245
    Roland Jones_21245
    Altair Employee
    Hi @GaryKG,

    I've had a look at our plot configurations, and to me it looks like the Regression line will take the colour of the first default colour. I will raise an RFE, in the meantime, I would use 2 plots to achieve what you're after: 


    I've attached the configuration file, which is using the Polynomial dataset from the Samples. Any questions let me know.

    Best,
    Roland