tensortrade.env.plotters.utils module

class tensortrade.env.plotters.utils.AggregatePlotter(*args, **kwargs)[source]

Bases: AbstractPlotter

A renderer that aggregates compatible plotters so they can all be used to render a view of the environment.

Parameters:

renderers (List[Renderer]) – A list of plotters to aggregate.

renderers

A list of plotters to aggregate.

Type:

List[Renderer]

close() None[source]

Closes the renderer.

registered_name = 'aggregate_renderer'
render() None[source]
reset() None[source]

Resets the renderer.

save() None[source]

Saves the rendered view of the environment.

property trading_env: TradingEnv

Provides access to the TradingEnv instance.

This property checks whether _trading_env has been initialized. If _trading_env is None, a ValueError is raised to prevent the use of an uninitialized TradingEnv.

Returns:

The initialized TradingEnv instance.

Return type:

TradingEnv

Raises:

ValueError – If _trading_env is not initialized.

tensortrade.env.plotters.utils.check_path(path: str, auto_create: bool = True) None[source]
tensortrade.env.plotters.utils.check_valid_format(valid_formats: list, save_format: str) None[source]
tensortrade.env.plotters.utils.create_auto_file_name(filename_prefix: str, ext: str, timestamp_format: str = '%Y%m%d_%H%M%S') str[source]