4

Bug introduced in 13.0 and persisting through 13.1. This bug is not present in macOS only in Windows.


With Mathematica 13.1 I see the following issue with the right side frame changing based upon the number of elements plotted. Specifically, with 1000 elements the right-side frame line is shown but with 1024 (and other numbers of elements) the right-side frame line does not show. This was not occurring in prior versions.

I am looking for a consistent fix.

$Version: "13.1.0 for Microsoft Windows (64-bit) (June 16, 2022)"

SetOptions[ListLinePlot, GridLines -> Automatic, Frame -> True, 
  PlotRange -> All, PlotStyle -> Thick, 
  BaseStyle -> {FontFamily -> "Gill Sans MT", FontSize -> 14}, 
  LabelStyle -> Directive[Bold], ImageSize -> 500, 
  ImageMargins -> 20];

ListLinePlot[Range[1024]] ListLinePlot[Range[1000]]

Bad right-side frame Good right-side frame

bmf
  • 15,157
  • 2
  • 26
  • 63
OpticsMan
  • 576
  • 2
  • 8

1 Answers1

1

I reproduce the problem with "13.1.0 for Microsoft Windows (64-bit) (June 16, 2022)", but not with "12.3.1 for Microsoft Windows (64-bit) (June 19, 2021)". Please report it to the support.

The problem seems to be related to the global change in default value of the screen resolution compatibility setting for Windows in version 13.0.0, discussed in the following threads:

You can reproduce the previous behavior by evaluating (but read this before you continue!):

CurrentValue[$FrontEnd, "ScreenResolutionCompatibilityMode"] = True
Alexey Popkov
  • 61,809
  • 7
  • 149
  • 368
  • I tied this work-around and it does correct the issue. However, it also requires restarting the kernel and the notebook since otherwise it causes large portions of the cells to blink and overwrite each other with different fonts or font sizes. I will report. Thanks. – OpticsMan Aug 10 '22 at 14:25
  • No. If you do that, it will get the same problem on the left side. Try clicking on vector image produced by https://mathematica.stackexchange.com/questions/261535/geometrictest-doesnt-work-in-ellipse/274508?noredirect=1#comment685986_274508 – Валерий Заподовников Dec 19 '22 at 02:45