Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Make hatch linewidth an rcParam #6198
Conversation
mdboom
added this to the
2.0 (style change major release)
milestone
Mar 21, 2016
mdboom
added the
needs_review
label
Mar 21, 2016
tacaswell
commented on the diff
Mar 22, 2016
| @@ -32,6 +32,8 @@ patch.facecolor : b | ||
| patch.edgecolor : k | ||
| patch.antialiased : True # render patches in antialiased (no jaggies) | ||
| +hatch.linewidth : 1.0 |
mdboom
Owner
|
jenshnielsen
and 1 other
commented on an outdated diff
Mar 22, 2016
QuLogic
added default changes Rcparams
labels
Mar 22, 2016
|
Passing Travis. AppVeyor seems blocked for last 3 hours. |
|
I think this is up next, but for some reason, AppVeyor only seems to be building one part of the matrix at a time. |
WeatherGod
commented on the diff
Mar 24, 2016
| @@ -1182,7 +1182,7 @@ def writeHatches(self): | ||
| 0, 0, sidelen, sidelen, Op.rectangle, | ||
| Op.fill) | ||
| - self.output(0.1, Op.setlinewidth) | ||
| + self.output(rcParams['hatch.linewidth'], Op.setlinewidth) |
WeatherGod
Member
|
WeatherGod
commented on the diff
Mar 24, 2016
| @@ -363,7 +363,7 @@ RendererAgg::_draw_path(path_t &path, bool has_clippath, const facepair_t &face, | ||
| hatch_path_trans_t hatch_path_trans(hatch_path, hatch_trans); | ||
| hatch_path_curve_t hatch_path_curve(hatch_path_trans); | ||
| hatch_path_stroke_t hatch_path_stroke(hatch_path_curve); | ||
| - hatch_path_stroke.width(1.0); | ||
| + hatch_path_stroke.width(points_to_pixels(gc.hatch_linewidth)); |
WeatherGod
Member
|
|
I am happy to merging this as-is to move 2.0 along. This improves things, there is now a way to change the hatch width and it is uniform across all of the backends (that we control) and closes a 3 digit bug! Still to do are:
@mdboom This has one overlap with the test images in the tick centering PR, maybe we should stack them into one merge? |
|
I think the axes spacing in #6129 will also touch many test images and maybe should be folded in as well if you're going to do so already. |
tacaswell
referenced
this pull request
Mar 27, 2016
Closed
Rasterizing patch changes filling of hatches in pdf backend #6228
|
@tacaswell wrote:
Sure -- not sure how best to do that, though. |
|
rebase one of them on the other? |
|
I think we should just merge this and #6200 separately. It's sort of rebase hell to pull out the test images from this one -- plus it will make bisecting harder later. |
|
fair enough. |
tacaswell
merged commit 949056c
into matplotlib:master
Apr 11, 2016
tacaswell
removed the
needs_review
label
Apr 11, 2016
tacaswell
added a commit
that referenced
this pull request
Apr 11, 2016
|
|
tacaswell |
f367f7b
|
|
backported to v2.x as f367f7b |
mdboom commentedMar 21, 2016
Fix #235