Skip to content

Plot refactor - #415

Open
eshelDror wants to merge 56 commits into
sblunt:mainfrom
eshelDror:plot_refactor
Open

Plot refactor#415
eshelDror wants to merge 56 commits into
sblunt:mainfrom
eshelDror:plot_refactor

Conversation

@eshelDror

Copy link
Copy Markdown
Collaborator

No description provided.

@eshelDror
eshelDror marked this pull request as ready for review July 19, 2026 19:32
Comment thread orbitize/plot.py
cmap = colors.LinearSegmentedColormap.from_list(
"trunc({n},{a:.2f},{b:.2f})".format(n=cmap.name, a=0.0, b=0.7),
cmap(np.linspace(0.0, 0.7, 1000)),
)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to define cmap here and below? Can we reduce it to just one def, either at the top here or in the Plotter class?

Comment thread orbitize/plot.py Outdated
def __init__(
self,
results,
object_to_plot=1, # TODO: Support multiplanet

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting that we should resolve this todo before merge (I'm sure this is already on your radar).

Comment thread orbitize/plot.py Outdated
self.results = results
self.system = results.system

if default_cmap is not None:

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure the logic works here to define the colormap as we expect

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

Successfully merging this pull request may close these issues.

2 participants