Skip to content

Commit 835c75e

Browse files
author
Mohammed Sadique
committed
test fix
1 parent 005d8bd commit 835c75e

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

lib/matplotex/figure/lead.ex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

lib/matplotex/figure/radial.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

lib/matplotex/utils/algebra.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
defmodule Matplotex.Utils.Algebra do
2-
alias Matplotex.Figure.TwoD
32
alias Nx
43

54
@tensor_data_type_bits 64

test/matplotex/figure/lead_test.exs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)