gonum / gonum/plot

vg/draw: Cropped canvases don't fill text according to the crop

Open
#522 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

What I did:

* Crop a canvas.
* Use FillText/FillString to draw a string at (0,0) in the cropped canvas.

Expected:

The string at (0,0) of the cropped canvas.

Got:

The string at (0,0) of the uncropped canvas.

It seems that the FillString method needs to be made aware of any cropping.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.