Open tmchartrand opened 7 months ago
I'm working off of the ccf_plots_refactor_mt branch
reminder to self: as I adjust function names, need to Find+Replace all instances in notebooks. Same for argument changes, but that will take more legwork to update across all notebooks
Progress as of today, commit 12cf04e97e8bc3fa7d14788c1c5528f359715a7d on branch ccf_plots_refactor_mt
Next steps for modularizing to increase shared code amongst plot_xxxx functions:
as I'm cleaning up the "view_XXX" notebooks, I've noted that the custom_xy_lims
parameter in most ccf_plots
functions will likely not be useful for generating new custom plots once we split thalamus_merfish_analysis
modules off into their own package because it requires a user to know the exact xy positions of the feature you'd like to highlight BUT we've shut off the axes via _format_image_axes()
so you can't see that info
I was getting around this by manually commenting out the lines that turned off the axes, but that won't be an option when it's an installed
I see a few options, I'd lean towards (1) but as a "nice-to-have" before release:
show_axes={default=False, True}
, to all top-level plotting functions that is passed through to _format_image_axes()
to allow users to turn the axes back on. Once they have their bounding box, they can turn it back off to make their figures look pretty againBefore release, we should switch the default values of the following parameters to reflect the ABC Atlas standard column names:
section_col='z_reconstructed'
x_col='x_reconstructed'
y_col='y_reconstructed'
ccf_label='parcellation_substructure'
Right now, each view_xxx
demo notebook has to include 1-2 extra cells at the top of the notebook to set those variables and then we have to explicitly specify them in each and every plotting function call.
Would be helpful to be able to clean that all up.