Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2bdd15b
add seaborn context processing
cvanelteren Nov 12, 2025
5cae6f0
rm debug
cvanelteren Nov 12, 2025
0786d28
add unittest
cvanelteren Nov 12, 2025
61ae661
resolve iterable
cvanelteren Nov 12, 2025
6dab0f2
relax legend filter
cvanelteren Nov 12, 2025
2887b3f
add seaborn import
cvanelteren Nov 12, 2025
d542103
add more unittests
cvanelteren Nov 12, 2025
4f9c13b
add ctx texts
cvanelteren Nov 12, 2025
7ea041c
implement mark external and context managing
cvanelteren Nov 12, 2025
c12de2b
fix test
cvanelteren Nov 12, 2025
80fef46
refactor classes for clarity
cvanelteren Nov 12, 2025
7d93bb1
update tests
cvanelteren Nov 12, 2025
288e8bb
more fixes
cvanelteren Nov 12, 2025
8ecccdd
more tests
cvanelteren Nov 12, 2025
aaa1cbc
minor fix
cvanelteren Nov 12, 2025
219e611
minor fix
cvanelteren Nov 12, 2025
3b5c90d
fix for mpl 3.9
cvanelteren Nov 13, 2025
9435fda
remove stack frame
cvanelteren Nov 13, 2025
4c44e82
adjust and remove unecessary tests
cvanelteren Nov 13, 2025
c8635c8
more fixes
cvanelteren Nov 13, 2025
3f969bf
add external to pass test
cvanelteren Nov 13, 2025
1b1ddc4
restore test
cvanelteren Nov 16, 2025
82fbb5d
rm dup
cvanelteren Nov 16, 2025
d5b2aa9
finalize docstring
cvanelteren Nov 16, 2025
8d2824c
remove fallback
cvanelteren Nov 17, 2025
8ee3fe3
Merge branch 'main' into add-seaborn-ctx
cvanelteren Nov 18, 2025
e6ba821
Apply suggestion from @beckermr
beckermr Nov 18, 2025
5923cdb
Apply suggestion from @beckermr
beckermr Nov 18, 2025
5287cdb
fix bar and test
cvanelteren Nov 19, 2025
d5df6a2
Merge branch 'main' into add-seaborn-ctx
cvanelteren Nov 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bar and test
  • Loading branch information
cvanelteren committed Nov 19, 2025
commit 5287cdb577429f6b3191e1e83a000543b9754813
2 changes: 1 addition & 1 deletion ultraplot/axes/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4737,7 +4737,7 @@ def _apply_bar(
xs, hs, kw = self._parse_1d_args(xs, hs, orientation=orientation, **kw)
edgefix_kw = _pop_params(kw, self._fix_patch_edges)
if absolute_width is None:
absolute_width = False
absolute_width = False or self._in_external_context()

# Call func after converting bar width
b0 = 0
Expand Down
2 changes: 1 addition & 1 deletion ultraplot/tests/test_1dplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_bar_relative_width_by_default_external_and_internal():

# With step=10, expect ~ 0.8 * 10 = 8
assert pytest.approx(w_int[0], rel=1e-6) == 8.0
assert pytest.approx(w_ext[0], rel=1e-6) == 8.0
assert pytest.approx(w_ext[0], rel=1e-6) == 0.8


def test_bar_absolute_width_manual_override():
Expand Down
Loading