4
$\begingroup$

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

$\endgroup$
7
  • $\begingroup$ The axes are correct and consistent for "13.0.0 for Mac OS X ARM (64-bit) (December 3, 2021)" $\endgroup$ Aug 9, 2022 at 16:43
  • $\begingroup$ Also okay with "13.1.0 for Mac OS X x86 (64-bit) (June 16, 2022)" $\endgroup$
    – Bob Hanlon
    Aug 9, 2022 at 16:51
  • 2
    $\begingroup$ Some new details. When the plot is manually resized smaller the right-side frame often reappears. Resizing larger never corrects the issue. Also copying or "copy as bitmap" maintains the lost frame in the image. $\endgroup$
    – OpticsMan
    Aug 9, 2022 at 21:01
  • 1
    $\begingroup$ 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. $\endgroup$ Aug 10, 2022 at 3:24
  • 1
    $\begingroup$ Still a problem in 13.2.0. $\endgroup$ Dec 19, 2022 at 0:18

1 Answer 1

1
$\begingroup$

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
$\endgroup$
2
  • $\begingroup$ 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. $\endgroup$
    – OpticsMan
    Aug 10, 2022 at 14:25
  • $\begingroup$ No. If you do that, it will get the same problem on the left side. Try clicking on vector image produced by mathematica.stackexchange.com/questions/261535/… $\endgroup$ Dec 19, 2022 at 2:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.