Bug introduced in 11.2 and persists through 12.2, case 4331202
I'm trying to see some plots based on data from a remote cluster as it runs various Mathematica 11.3/12 scripts, so I want to use the JavaGraphics` package to render plots that I can in turn X11 forward to my computer. The X11 forwarding is definitely working, as I can Plot and ListPlot3d just fine and get nice plots. However, when I try to ListPlot, it fails. I'm able to reproduce this same behavior in my local Mathematica 12 Notebook. Here's how:
<<"JavaGraphics`"
Plot[Sinc[x],{x,0,20}]
Pause[5];
ListPlot3D[Table[Mod[x,y],{x,0,20},{y,0,20}]]
Pause[5];
ListPlot[Table[Prime[n],{n,1,20}]]
But meanwhile, when I go back into the internet sands of time, I see evidence of it working at some point. Somewhat infuriatingly, ListPlot is the function I need, and I can't see how I could replace it for making a scatter plot.
As a potential foray into figuring this out, I noticed that I get the same non-functionality with the option DisplayFunction->CreateDialog
.
Plot[Sinc[x],{x,0,20},DisplayFunction->CreateDialog]
Pause[5];
ListPlot3D[Table[Mod[x,y],{x,0,20},{y,0,20}],DisplayFunction->CreateDialog]
Pause[5];
ListPlot[Table[Prime[n],{n,1,20}],DisplayFunction->CreateDialog]
I've confirmed both of these bugs over multiple Mathematica installations on multiple devices running both 11.3 and 12.
Does anyone have any experience with this, or any hunches as to why this isn't working?
ListPlot
, I would report it as a bug to WRI. You can then also add the case id you get when submitting to the top of the question. I'll try to post a manual fix later today. $\endgroup$