Is there a way to have lines of different colors and different color of the solid color in the fill option?2 years, 8 months ago dgteamModerator
If you want to have complete control over the colors and have each line and error bar the same color, you would need to create a command for each one.
(I am assuming you want the error bar and line color the same. If that is not the case, you can ignore the parts about changing the error bar color.)
- Add a column that you could use as a Mask. Here I added the text column Group.
- Add the mask in the command.
- Set the color the line and the error bars to the same color tile (e.g., Line 1).
(NOTE: if this is not the color you want, don’t worry — you can customize in the style sheet later — they just need to the be the same entry in the list of color tiles)
Notice — I also added a Legend command and Specified the Legend name in the command as ‘one’.
Next, close this command, highlight the command, copy (command-C) and paste (command-V).
For this example, I copy and pasted the command twice and then for each command:
- Updated the Mask
- Updated the Legend name
- Changed the Line and Error bar to the same color
- Change the fill color
This gives you different lines and and colors for each fill.
To change the Line colors. use the Style settings (this is where the colors in the drop-down menu in the commands are specified for each graph — if you don’t care about keeping the colors coordinated for the line and error bars, you could just change the colors in the commands.).
- Open the Style settings.
- Click a color tile.
- Use the any of the color selectors to change the color.
If you only have a few lines, the above approach gives you a lot of flexibility, but does require the work of adding the additional commands and masks.
Here is a link to a Video that explains the color scheme option:
This video also introduces the Plots command. Plots can draw multi-colored lines but requires the x is always the same, the y values are in separate columns, and does not draw error bars. So I don’t think this is a good solution for you.
Finally, (sorry for the long response!) we have been contemplating a new command which could allow for multicolored lines drawn from data in the format you have, along with the error bars. We working on getting that in the Beta now — but hopefully this gets you want you need for the moment!
Thank you for your answer, I couldn’t manage to add a legend command, with the same plot. I think if I could do that I can manage the next.
Thank you for your answer, I couldn’t manage to add a legend command, with the same plot…I put the number in a new column and insert new plots.
You must be logged in to reply to this topic.