Skip to content

Commit

Permalink
fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelsoup42 committed Oct 14, 2023
1 parent 4f8fa0c commit f8c999b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/cardano_account_pandas_dumper/cardano_account_pandas_dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def make_transaction_frame(
return joined_frame

def _plot_title(self):
return f"Asset balances in wallet until block {self.data.to_block}."
return f"Asset balances in wallet until block {self.data.to_block}"

def _draw_asset_legend(self, ax: Axes, asset_id: str):
ticker = None
Expand Down Expand Up @@ -643,9 +643,17 @@ def _draw_asset_legend(self, ax: Axes, asset_id: str):
horizontalalignment="center",
transform=ax.transAxes,
fontsize="xx-small",
clip_on=True,
)
if image_data:
ax.imshow(mpl.image.imread(image_data), aspect="auto")
ax.set_adjustable("datalim")
ax.imshow(
mpl.image.imread(image_data),
aspect="equal",
extent=(0.3, 0.7, 0.8, 0.4),
)
ax.set_xlim((0.0, 1.0))
ax.set_ylim((1.0, 0.0))

def plot_balance(self, order: str = "appearance"):
"""Create a Matplotlib plot with the asset balance over time."""
Expand Down

0 comments on commit f8c999b

Please sign in to comment.