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 2121# with Matplotlib 1.3, I get "UserWarning: bbox_inches option for ps backend is not implemented yet"
2222if PyPlot. version >= v " 2"
2323 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)
2526 @test m != = nothing
26- boundingbox = map (s -> parse (Int , s), m. captures)
27+ boundingbox = map (s -> parse (Float64 , s), m. captures)
2728 @info (" got plot bounding box " , boundingbox)
2829 @test all ([300 , 200 ] .< boundingbox[3 : 4 ] - boundingbox[1 : 2 ] .< [450 ,350 ])
2930end
You can’t perform that action at this time.
0 commit comments