Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. ListLinePlot[{data11, data31, data51}, PlotRange -> All, PlotTheme -> {"Monochrome"},
  2. PlotMarkers -> {"■", "◆", "●"}, Mesh -> 10, GridLines -> Automatic,
  3. PlotLegends -> Placed[{"a", "b", "c"}, {0.75, 0.3}]]
  4.  
  5. {data11, data31, data51} = Accumulate /@ ( RandomReal[#, 30] & /@ {1, {1, 2}, {2, 3}});
  6.  
  7. mesh = 10;
  8. llp = ListLinePlot[{data11, data31, data51}, Mesh -> mesh,
  9. PlotRange -> All, ImageSize -> Large,
  10. PlotMarkers -> Thread[{{"□", "◇", "○"}, 16}], GridLines -> Automatic,
  11. PlotLegends -> Placed[{"a", "b", "c"}, Right]]
  12.  
  13. ClearAll[fixMesh]
  14. fixMesh = Module[{meshcoords = Transpose[GatherBy[Cases[#, Point[x_] :> x, All], First]],
  15. insets = Cases[#, GeometricTransformation[i_, ___] :> i, All],
  16. styles = Cases[#, {d_, _GeometricTransformation} :> d, All], add},
  17. add = MapThread[{#, GeometricTransformation[##2]} &, {styles, insets, meshcoords}];
  18. # /. {_Point -> Nothing, _GeometricTransformation -> add}] &;
  19.  
  20. fixMesh[llp]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement