Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ticks on top axis disappear if tick size is too large (when using bbox_inches='tight') #3514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix marker clipping rectangle.
  • Loading branch information
mdboom committed Sep 18, 2014
commit 350413cb1abc8bb07d52b95e92c039f2d50ee0a6
8 changes: 4 additions & 4 deletions src/_backend_agg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,10 +769,10 @@ RendererAgg::draw_markers(const Py::Tuple& args)
agg::serialized_scanlines_adaptor_aa8::embedded_scanline sl;

agg::rect_d clipping_rect(
-(scanlines.min_x() + 1.0),
(scanlines.max_y() + 1.0),
width + scanlines.max_x() + 1.0,
height - scanlines.min_y() + 1.0);
-1.0 - scanlines.max_x(),
Copy link
Member

Choose a reason for hiding this comment

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

Why did the x min/max get swapped?

Do I want to ask why it looks like the origin is in the lower right with the values increasing down and to the right?

-1.0 - scanlines.max_y(),
1.0 + width - scanlines.min_x(),
1.0 + height - scanlines.min_y());

if (has_clippath)
{
Expand Down