Closed mbbatukan closed 2 years ago
Hi @batukan009
Thanks for the feature requests.
I have implemented the first point, by adding two new arguments: nodes_only
and fmt_model
. The defaults are: nodes_only=False
, fmt_model='b.-'
. Usage examples:
opsv.plot_model(nodes_only=True) # to show nodes only even thought the elements are defined
opsv.plot_model(fmt_model='b-') # to show elements without node markers
For the second point I need more time.
Update and test please!
Thanks @sewkokot. These options work well. Looking forward to testing other implementations.
EDIT: Just an idea, I prefer to pass a dictionary to kwargs in plot function. In this way, users can change a variety of settings to see elements or nodes only without having a secondary option.
elements only -> dict_fmt = {'color': 'blue', 'linestyle':'solid', 'linewidth': 1.0, 'marker': '', 'markersize':1.0}
nodes only -> dict_fmt = {'color': 'blue', 'linestyle':'solid', 'linewidth': 0.0, 'marker': '.', 'markersize':1.0}
plot_model(......, fmt_model=dict_fmt)
@mbbatukan Thank you for the dictionary suggestion. In the refactored latest opsvis package this feature is implemented and replaces the old string line formatting. See the updated examples and function documentation. Also please test!
Hi there,
Thanks for the recent update. I was wondering if you could include a couple of options in plot_model function.