Skip to content

Commit

Permalink
Plot title kwargs (#368)
Browse files Browse the repository at this point in the history
* a first cut

* add x/y positional params

* recompile

* reset lockfiles to be even with origin

* relock

---------

Co-authored-by: Charles Stern <[email protected]>
  • Loading branch information
atmorling and cisaacstern authored Nov 15, 2024
1 parent 6385d3b commit 2796993
Show file tree
Hide file tree
Showing 11 changed files with 78 additions and 25 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions examples/events/ecoscope-workflows-events-workflow/pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions examples/patrols/ecoscope-workflows-patrols-workflow/pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class LayoutStyle(BaseModel):
font_style: str | SkipJsonSchema[None] = None
plot_bgcolor: str | SkipJsonSchema[None] = None
showlegend: bool | SkipJsonSchema[None] = None
title: str | SkipJsonSchema[None] = None
title_x: Annotated[float, Field(ge=0.0, le=1.0)] | SkipJsonSchema[None] = None
title_y: Annotated[float, Field(ge=0.0, le=1.0)] | SkipJsonSchema[None] = None


class BarLayoutStyle(LayoutStyle):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def test_draw_time_series_bar_chart(time_series_dataframe, time_interval):
time_interval=time_interval,
color_column="color_column",
plot_style=PlotStyle(xperiodalignment="middle"),
layout_style=LayoutStyle(title="Some Bars"),
)

assert isinstance(plot, str)


Expand Down

0 comments on commit 2796993

Please sign in to comment.