# Colors and markers in grouped plot

**URL:** <https://discourse.julialang.org/t/colors-and-markers-in-grouped-plot/10264>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [April 10, 2018, 6:02pm UTC](https://discourse.julialang.org/t/colors-and-markers-in-grouped-plot/10264 "2018-04-10T18:02:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [April 10, 2018, 6:02pm UTC](https://discourse.julialang.org/t/colors-and-markers-in-grouped-plot/10264/1 "2018-04-10T18:02:13Z")

</div>

I really appreciate the grouped plot from [StatPlots.jl](https://github.com/JuliaPlots/StatPlots.jl), in particular since this [PR](https://github.com/JuliaPlots/Plots.jl/pull/1429) (adjusting group legend lables nicely) has been merged.

However, typically I want to group and plot data according to, let’s say, two column `:T` and `:L` but also specify colors and markers for groups. For example, The color of the group should be chosen according to the `:T` value and the marker style according to the `:L` value of a datapoint.

Example:

 ![example](https://global.discourse-cdn.com/julialang/original/3X/d/c/dc0c22705a7f4002223060f93023f19472310679.png)

Curves with same `:T` have same color. Curves with same L have same markers.

**Is there a nice way to achieve that using Plots.jl/StatPlots.jl?**

Thanks in advance!
