Question: Inconsistency in Maple 15: code works in one case, identical code returns error in another

I entered the following code in Maple 15.  In one instance it plotted the correct graph with the "x" and "y" labels exactly where I wanted them.  The identical code, in another instance (and again in a separate tab) generates an error:

  "Error, (in plots:-display) cannot make plot structure from object with name textplot"

 

Of course, when I click the error above in Maple (it is a link), a Maple webpage comes up that says:

Sorry, we do not have specific information about your error. There are several resources that can help you find a solution:"


What is wrong here?  Either this is a serious bug, or just and indication of Maple being "user un-friendly".

I used to program in various languages for many years, and I have never seen anything like this.  Any help would be greatly appreciated.

------------ code below -------------------

g1 := plot((1/2)*(x-1)*((x-2)^2+1)*(1/(x-1)), x = -1 .. 4, discont = true, thickness = 4)

g2 := plots[pointplot]([1, 1], symbol = solidcircle, symbolsize = 44, thickness = 24, color = red)

g3 := plots[pointplot]([1, 1], symbol = solidcircle, symbolsize = 28, color = white)

axisLabels := textplot({[4, .4, "x"], [.20, 5, "y"]}, font = [Times, italic, 24], color = black)

plots[display]([g1, g2, g3, axisLabels], font = [Calibri, roman, 24], labels = [``, ``])

----------------------------------------------

Please Wait...