Clearing axis cache on Julia REPL

Enlil50
Fri, 08 Mar 2024 18:07:17 +0000
General Usage

I have this program

using PythonPlot

x = [1, 2]
y = Float64[1.01, 1.02]

fig1 = pyplot.figure(1)
ax1 = fig1.add_subplot(1, 1, 1)
plot(x, y, '.')
pyplot.suptitle(L"title", fontsize=12)
ax1.set_ylabel(L"x \ axis", fontsize=12)
ax1.set_xlabel(L"y \ axis", fontsize=12)

But running various time

include("file.jl")

Axis stack one on top of the other.

You could even try changing the name of an axis and see how it appears over the previous one.

Is there a way to clear axis with the plot?

6 posts - 2 participants