|
I have two groups of elements, and I would like to know if it's possible to define a color for each group, such as EAST or WEST. When plotting the graph with o.plot(), one group would be blue and the other red. #east |
Replies: 3 comments 1 reply
|
You can use element property Note that plotting does not support coloring elements with property, so I used here animation method for that purpose, and had to trick by simulate one timestep. |
|
Unfortunately, I need to plot the graphs with the trajectories, and I saw that it’s possible to save the files using the function: I think I'll create a NetCDF file with the results for each trajectory and use matplotlib to plot the trajectories in the way I want. Thank you very much for the quick response, Knutfrode. I have another question: is it possible to add shapefiles when using |
|
There is no After making a simulation, you can add There is no method to add shapefiles with built in plot method, but you can create more customized figures with the TrajAn package under development: |

You can use element property
origin_markerfor this purpose: