We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd9e215 commit e656e9bCopy full SHA for e656e9b
pysits/visualization/base.py
@@ -104,7 +104,8 @@ def _base_plot(
104
# Assuming a plot is a list of elements, we always have many elements.
105
# Cases where we have a single element indicates that the plot object is
106
# inside a list.
107
- while len(plots) == 1:
+ # This is only true when the object is not a ggplot object
108
+ while "ggplot2::ggplot" not in list(plots.rclass) and len(plots) == 1:
109
plots = plots[0]
110
111
# Create a temporary file
0 commit comments