conn = {{{0, 0}, {10, 0}}, {{0, 0}, {10, 10}}, {{10, 0}, {10, 10}},
{{10, 0}, {20, 0}}, {{10, 10}, {20, 0}}, {{10, 10}, {20, 10}},
{{20, 0}, {20, 10}}, {{20, 0}, {30, 0}}, {{20, 10}, {30, 0}}};
ListLinePlot[conn, PlotStyle -> Dashing[Large]]
I am new to Mathematica. I want all the lines to be of the same color (say red). I tried different options, but they are not consistent with ListLinePlot
. I also want to legend the whole structure as a single entity as I am having multiple structures in the same plot. Could somebody help me with this?
Flatten[conn, 1]
orJoin@@conn
inListLinePlot
. Then just usePlotLegends
as desired. $\endgroup$