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

[Feature Request] Visualizing dimensions #2175

Closed
Hoeze opened this issue May 23, 2018 · 4 comments
Closed

[Feature Request] Visualizing dimensions #2175

Hoeze opened this issue May 23, 2018 · 4 comments

Comments

@Hoeze
Copy link

Hoeze commented May 23, 2018

Hi, I'm curious how you created your logo:
grafik

I'd like to create visualizations of the dimensions in my dataset similar to your logo.
Having a functionality simplifying this task would be a very useful feature in xarray.

@jhamman
Copy link
Member

jhamman commented May 23, 2018

I think this logo is generated using Latex (source).

I do think it would be cool if we could visualize the dimensionality/composition of xarray datasets with some sort of ds.visualize() method. How would one go about doing this though? How would you handle higher dimension datasets?

@Hoeze
Copy link
Author

Hoeze commented May 23, 2018

In general, I'd work with data "lego blocks".
Visualizations up to three dimensions would be self-explaining.
One block = scalar, a row of blocks = vector, a plane of blocks = matrix, a cuboid of blocks = 3D array.

Different variables can then be aligned along each dimension (similar to the red and orange planes aligned to the right side of the pink cuboid)

More than three dimensions could be handled by placing multiple cuboid-blocks (like the blue and pink cuboid in the logo).

The relational sizes of different dimensions should be chosen carefully, maybe with some non-linear scaling?
Or we could separate large dimensions in the middle:
grafik
(just an illustration, drawing what I'd like to have in libreoffice is hard)

However, I'm not sure how to realize that...

@Hoeze
Copy link
Author

Hoeze commented May 24, 2018

Some weeks ago I tried to solve this using a Latex-Script generator (https://github.com/Hoeze/matrixtolatex), but I gave it up as it was too hard for me to create 3D figures with LaTex.
I think having this built on top of a senseful plotting framework would be a lot easier.

@TomNicholas
Copy link
Contributor

I gave it up as it was too hard for me to create 3D figures with LaTex

There is a 3dtikz package I think?

Is this issue now superceded by the discussion going on in #1820?

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

4 participants