Skip to content

[ENH]: add organizational charts to supported plots #25222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rbt94 opened this issue Feb 15, 2023 · 6 comments · Fixed by #26064
Closed

[ENH]: add organizational charts to supported plots #25222

rbt94 opened this issue Feb 15, 2023 · 6 comments · Fixed by #26064
Milestone

Comments

@rbt94
Copy link

rbt94 commented Feb 15, 2023

Problem

I would like to efficiently use matplotlib to produce also organizational charts like the Ishikawa (fishbone) diagram to include also the cause-effect relationships into professional and academical documents. For the Ishikawa case, it could be interesting to modify the treeplot by using a fractal layout for the spines.

Thank you for your consideration.

Proposed solution

No response

@jklymak
Copy link
Member

jklymak commented Feb 15, 2023

Thanks for your interest in improving Matplotlib!

That type of chart is super-specialized and I would expect better suited to an external library. We don't provide a tree plot, either, though https://github.com/erdogant/treeplot does. If the external library proved popular, and/or there was a compelling reason it needed to be in core, it would certainly be possible to consider.

@story645
Copy link
Member

This could also maybe be a gallery entry at https://networkx.org/documentation/stable/auto_examples/index.html but you'd have to ask the networkx folk

@jklymak
Copy link
Member

jklymak commented Feb 15, 2023

Think about this more, it is definitely something that should be developed elsewhere. The API for this will be extremely broad, so best to refine it first. Please feel free to approach us again if there is a package that should be subsumed, or if it is not possible to make what you want without changing Matplotlib internals.

@jklymak jklymak closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2023
@rbt94
Copy link
Author

rbt94 commented Feb 15, 2023

Thank you @jklymak for the support. I will try to ask the same to some dedicated projects or I will implement it for specific cases little by little.
Regards,
Robert

@rbt94
Copy link
Author

rbt94 commented Feb 16, 2023

PS: For one that will read the post in the future, I have implemented only the Ishikawa plot from scratch by using only matplotlib and numpy.
You can find the code here: fishbone diagram using Python or graphviz

@jklymak
Copy link
Member

jklymak commented Feb 16, 2023

Great! Your s/o post seems modest sized so consider adding to our examples?

rbt94 pushed a commit to rbt94/matplotlib_ishikawa_example that referenced this issue Feb 18, 2023
@rcomer rcomer linked a pull request Feb 18, 2023 that will close this issue
6 tasks
rbt94 pushed a commit to rbt94/matplotlib_ishikawa_example that referenced this issue Mar 4, 2023
@QuLogic QuLogic added this to the v3.8.0 milestone Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants