Comments (2)
Ok, this is more what I should be going for I think:
import matplotlib.pyplot as plt
fig, axes = plt.subplots(1, 3)
[plot_structure_2d(s, ax=ax) for s, ax in zip(train_structures.tolist(), axes)]
from pymatviz.
I don't think there's a way for plot_structure_2d()
to be smart about this since it can't know how many structures there are to plot in total and what the figure's axes layout should be.
Ok, this is more what I should be going for I think:
Yes, that's the intended usage. There are 2 somewhat hidden examples of this:
pymatviz/assets/_generate_assets.py
Lines 239 to 248 in 9c42d70
Should probably add a multi-axes example to the plot_structure_2d()
doc string to make it more discoverable.
from pymatviz.
Related Issues (20)
- Periodic table heatmap raises error for values = 1 for `log=True` HOT 3
- [Feature] [Self-assigned] Add heatmap plotter HOT 4
- New plot type: `ptable_scatter` HOT 6
- can't clone `ml-matrics` - `error: invalid path 'data/mp-n_elements<2.csv'` HOT 3
- Rename ml-matrics to pymatviz HOT 6
- Add image comparison tests for all `matplotlib` plots HOT 1
- Better docs HOT 2
- New plot type: Sankey diagram HOT 1
- spacegroup_sunburst() should support space groups both in international number and symbol notation
- `spacegroup_hist()` should support space groups symbols as well as numbers
- Allow omitting certain elements in `ptable_heatmap()`
- `plot_structure_2d()` show bonds HOT 1
- chemical clustering HOT 1
- example for log plot with ptable_heatmap_plotly HOT 2
- Include example notebooks in CI tests
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied HOT 1
- Changing the edge color of atoms HOT 5
- Handle lists and arrays as `x`, `y` in `density_scatter` and siblings HOT 7
- Feature: Visualizing Molecules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymatviz.