Skip to content

Commit f2d4631

Browse files
committed
Fix #3790. Correctly scale quadmesh linewidth to dpi in Agg backend.
1 parent 8ca8a2c commit f2d4631

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
Loading

src/_backend_agg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ RendererAgg::draw_quad_mesh(const Py::Tuple& args)
19251925

19261926
Py::Object transforms_obj = Py::List(0);
19271927
Py::Tuple linewidths(1);
1928-
linewidths[0] = Py::Float(gc.linewidth);
1928+
linewidths[0] = Py::Float(gc.linewidth * 72.0 / dpi);
19291929
Py::SeqBase<Py::Object> linestyles_obj;
19301930
Py::Tuple antialiaseds(1);
19311931
antialiaseds[0] = Py::Int(antialiased ? 1 : 0);

0 commit comments

Comments
 (0)