cityImage.Plot#

class cityImage.Plot(figsize, black_background, fontsize, title=None)[source]#

Class for creating a basic matplotlib plot with a title and customizable settings.

Parameters:
  • figsize (tuple) – Tuple of width and height for the figure.

  • black_background (bool) – Whether to set the background color as black.

  • title (str) – Title for the plot.

fig#

Figure object for the plot.

Type:

matplotlib.figure.Figure

ax#

Axes object for the plot.

Type:

matplotlib.axes object

title#

Title for the plot.

Type:

str

text_color#

Color for text elements, white if black_background is True and black otherwise.

Type:

str

font_size_primary#

Font size for the title.

Type:

int

font_size_secondary#

Font size for secondary elements.

Type:

int

__init__(figsize, black_background, fontsize, title=None)[source]#

Methods

__init__(figsize, black_background, fontsize)