@@ -417,7 +417,7 @@ class Graphics(Builtin):
417417
418418 In 'TeXForm', 'Graphics' produces Asymptote figures:
419419 >> Graphics[Circle[]] // TeXForm
420- =
420+ =
421421 . \begin{asy}
422422 . size(5.8556cm, 5.8333cm);
423423 . add((175,175,175,0,0,175)*(new picture(){picture s=currentpicture,t=new picture;currentpicture=t;draw(ellipse((0,0),1,1), rgb(0, 0, 0)+linewidth(0.0038095));currentpicture=s;return t;})());
@@ -2649,6 +2649,19 @@ def get_line_width(self, face_element=True):
26492649 return 0
26502650 return edge_style .get_thickness ()
26512651
2652+ def to_axis_style (self ):
2653+ return AxisStyle (self )
2654+
2655+
2656+ class AxisStyle (Style ):
2657+ def __init__ (self , style ):
2658+ super (AxisStyle , self ).__init__ (style .graphics , style .edge , style .face )
2659+ self .styles = style .styles
2660+ self .options = style .options
2661+
2662+ def get_line_width (self , face_element = True ):
2663+ return 0.5
2664+
26522665
26532666def _flatten (leaves ):
26542667 for leaf in leaves :
@@ -3205,6 +3218,11 @@ def create_axes(self, elements, graphics_options, xmin, xmax, ymin, ymax):
32053218 ticks_style = [elements .create_style (s ) for s in ticks_style ]
32063219 axes_style = [elements .create_style (s ) for s in axes_style ]
32073220 label_style = elements .create_style (label_style )
3221+
3222+ ticks_style = [s .to_axis_style () for s in ticks_style ]
3223+ axes_style = [s .to_axis_style () for s in axes_style ]
3224+ label_style = label_style .to_axis_style ()
3225+
32083226 ticks_style [0 ].extend (axes_style [0 ])
32093227 ticks_style [1 ].extend (axes_style [1 ])
32103228
0 commit comments