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

Skip to content

Commit a307b77

Browse files
committed
fixed the font rotation agg bug -- and there was much rejoicing
svn path=/trunk/matplotlib/; revision=5303
1 parent 0715c3b commit a307b77

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/matplotlib/ticker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ def __init__(self, useOffset=True, useMathText=False):
301301
self._scientific = True
302302
self._powerlimits = rcParams['axes.formatter.limits']
303303

304+
304305
def fix_minus(self, s):
305306
'use a unicode minus rather than hyphen'
306307
if rcParams['text.usetex']: return s

src/_backend_agg.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,11 @@ RendererAgg::draw_text_image(const Py::Tuple& args) {
679679
typedef agg::span_allocator<agg::rgba8> color_span_alloc_type;
680680
typedef agg::span_interpolator_linear<> interpolator_type;
681681
typedef agg::image_accessor_clip<agg::pixfmt_gray8> image_accessor_type;
682-
typedef agg::span_image_filter_gray_2x2<image_accessor_type, interpolator_type>
682+
//typedef agg::span_image_filter_gray_2x2<image_accessor_type, interpolator_type>
683+
// image_span_gen_type;
684+
typedef agg::span_image_filter_gray<image_accessor_type, interpolator_type>
683685
image_span_gen_type;
686+
684687
typedef font_to_rgba<image_span_gen_type> span_gen_type;
685688
typedef agg::renderer_scanline_aa<renderer_base, color_span_alloc_type, span_gen_type>
686689
renderer_type;

0 commit comments

Comments
 (0)