Closed CompRhys closed 2 weeks ago
can we clean up the empty plots on 5x3 layout?
69b0a8e makes a 4x3 each-parity-models showing only compliant models but dropping Voronoi RF
attempt to rotate optimal recall either so it sits on the line or is horizontal
rotate optimal recall line label -- the issue here is that the figure is dynamically sized, but the angle doesn't adjust dynamically. attempted to fix width but doesn't seem to work. Maybe something in pmv adjusts?
i think this works.
# Calculate text angle based on data range
dev_fig = fig.full_figure_for_development(warn=False)
x_max = dev_fig.layout.xaxis.range[1]
y_max = dev_fig.layout.yaxis.range[1]
dx = n_stable / x_max
dy = 1 / y_max
textangle = -math.degrees(math.atan2(dy, dx))
would go here
might make sense to start grouping scripts into
scripts/discovery
scripts/phonons
scripts/geo_opt
could also leave that for a future PR
i think this works.
# Calculate text angle based on data range dev_fig = fig.full_figure_for_development(warn=False) x_max = dev_fig.layout.xaxis.range[1] y_max = dev_fig.layout.yaxis.range[1] dx = n_stable / x_max dy = 1 / y_max textangle = -math.degrees(math.atan2(dy, dx))
would go here
This isn't a full fix, to get this to work you have to set the figure size early which may impact some of the svelte plots. Plotly issue here: https://github.com/plotly/plotly.py/issues/4858
playing with figures, I think 5x3 works well but need to delete the empty plots in the parity plots per the histogram plots if possible. Putting the caption below the big V-shape plot lets us use all traces, I think the plot is only useful if we see the large differences.
TODO:
can we clean up the empty plots on 5x3 layout?just drop last (partially-filled) row as the Voronoi RF plot isn't that interestingrotate IQR label on box plot to be vertical as they overlapremoved the IQR labels made boxes widerrotate optimal recall line labelcan't be fixed on dynamics figures -> hard code size earlier.set the table height for the different metrics tables to ensure consistent sizing on the pagecan be done in latex