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

Skip to content

Commit 20741b5

Browse files
committed
Merge pull request #3514 from mdboom/large-ticks
BUG : Ticks on top axis disappear if tick size is too large (when using bbox_inches='tight')
2 parents ec894f6 + 350413c commit 20741b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/_backend_agg.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,10 @@ RendererAgg::draw_markers(const Py::Tuple& args)
769769
agg::serialized_scanlines_adaptor_aa8::embedded_scanline sl;
770770

771771
agg::rect_d clipping_rect(
772-
-(scanlines.min_x() + 1.0),
773-
(scanlines.max_y() + 1.0),
774-
width + scanlines.max_x() + 1.0,
775-
height - scanlines.min_y() + 1.0);
772+
-1.0 - scanlines.max_x(),
773+
-1.0 - scanlines.max_y(),
774+
1.0 + width - scanlines.min_x(),
775+
1.0 + height - scanlines.min_y());
776776

777777
if (has_clippath)
778778
{

0 commit comments

Comments
 (0)