File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 21
21
# with Matplotlib 1.3, I get "UserWarning: bbox_inches option for ps backend is not implemented yet"
22
22
if PyPlot. version >= v " 2"
23
23
s = sprint (show, " application/postscript" , fig);
24
- m = match (r" %%BoundingBox: *([0-9]+) +([0-9]+) +([0-9]+) +([0-9]+)" , s)
24
+ # m = match(r"%%BoundingBox: *([0-9]+) +([0-9]+) +([0-9]+) +([0-9]+)", s)
25
+ m = match (r" %%BoundingBox: *([0-9]+\. ?[0-9]*) +([0-9]+\. ?[0-9]*) +([0-9]+\. ?[0-9]*) +([0-9]+\. ?[0-9]*)" , s)
25
26
@test m != = nothing
26
- boundingbox = map (s -> parse (Int , s), m. captures)
27
+ boundingbox = map (s -> parse (Float64 , s), m. captures)
27
28
@info (" got plot bounding box " , boundingbox)
28
29
@test all ([300 , 200 ] .< boundingbox[3 : 4 ] - boundingbox[1 : 2 ] .< [450 ,350 ])
29
30
end
You can’t perform that action at this time.
0 commit comments