Skip to content
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

Improve Markov chain networkx figure #389

Open
jstac opened this issue Mar 1, 2024 · 2 comments
Open

Improve Markov chain networkx figure #389

jstac opened this issue Mar 1, 2024 · 2 comments
Assignees

Comments

@jstac
Copy link
Contributor

jstac commented Mar 1, 2024

In https://intro.quantecon.org/markov_chains_I.html#example-3, the directions of the arrows and the weights are a bit hard to see. I'd like to have a version where all the transition directions and weights are clearer.

@mmcky
Copy link
Contributor

mmcky commented Apr 3, 2024

@jstac this is an interesting one. There is only one large transition probability which is throwing the colorbar off. Using a diverging colormap shows there are a lot of small values.

Screenshot 2024-04-03 at 2 50 26 PM

I think we want a sequential colourmap as it is an indicator of intensity. Wondering if we should drop edges that are below are certain cutoff to clean up the visualisation and push some of the colourmap variation towards higher intensity blues.

@jstac
Copy link
Contributor Author

jstac commented Apr 3, 2024

Thanks @mmcky , this is definitely an improvement.

I think we might need to keep all edges so that we understand if it's irreducible etc.

  • For some reason, the arrows are partially hidden. Is it possible to fix this?
  • Let's have hot colors for high intensity and cool colors for low intensity.
  • It's a shame that some colors are very pale. Maybe switch to jet colormap?

@mmcky mmcky self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants