File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,11 +4,8 @@ defmodule Matplotex.Figure.Lead do
44 alias Matplotex.Figure.Font
55 alias Matplotex.Figure.Areal.Region
66 alias Matplotex.Figure.TwoD
7- alias Matplotex.Figure.Coords
87 alias Matplotex.Figure.RcParams
98 alias Matplotex.Figure
10- @ pt_to_inch 1 / 150
11- @ padding 10 / 96
129 @ zero_to_move 0
1310
1411 @ spec set_regions_areal ( Matplotex.Figure . t ( ) ) :: Matplotex.Figure . t ( )
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ defmodule Matplotex.Figure.Radial do
8080 } = axes
8181 } = figure
8282 ) do
83- IO . inspect ( legend_width )
8483 width_region_legend = fwidth * legend_width
8584 height_region_legend = abs ( by - y_region_title )
8685
Original file line number Diff line number Diff line change 11defmodule Matplotex.Utils.Algebra do
2- alias Matplotex.Figure.TwoD
32 alias Nx
43
54 @ tensor_data_type_bits 64
Original file line number Diff line number Diff line change @@ -205,8 +205,7 @@ defmodule Matplotex.Figure.LeadTest do
205205 region_legend: % Region {
206206 x: x_region_legend ,
207207 y: y_region_legend ,
208- width: width_region_legend ,
209- height: height_region_legend
208+ width: width_region_legend
210209 } ,
211210 region_title: % Region { height: height_region_title }
212211 }
@@ -216,8 +215,7 @@ defmodule Matplotex.Figure.LeadTest do
216215 height_margin_value = margin * fheight
217216 assert x_region_legend == fwidth - width_margin_value - width_region_legend
218217
219- assert y_region_legend ==
220- - ( height_margin_value + height_region_title + height_region_legend )
218+ assert abs ( y_region_legend ) == height_margin_value + height_region_title
221219 end
222220
223221 @ tag radial: true
You can’t perform that action at this time.
0 commit comments