Skip to content

Find better way to fix image cropping in docs. #65

@jberlanga

Description

@jberlanga

Docs use Matplotlib's .. plot:: directive, which incorrectly crops off edges of images produced by plotting code (see Matplotlib issue here, resulting in behavior like that below:

plot_image_crop_bug

Need to find a better way to fix this other than sticking the following block of code before every plt.show() instance, as this obscures the astroplan code that the docs are meant to illustrate:

# Note that you don't need this code block to produce the plot.
# It reduces the plot size for the documentation.
ax = plt.gca()
box = ax.get_position()
ax.set_position([box.x0, box.y0, box.width * 0.75, box.height * 0.75])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions