matt-dray / pixeltrix

:space_invader::computer_mouse: R package: make pixel art interactively in a plot window, get a matrix, make a gif
Other
21 stars 0 forks source link

How do you prevent the plot window's size from resetting? #11

Open matt-dray opened 2 years ago

matt-dray commented 2 years ago

In RStudio you can adjust the plot pane dimensions and any new plots will be produced at that size.

When running from the terminal, the dimensions are reset to default for each new plot. (Tested only on my own macOS machine in Terminal.)

That's a problem in {pixeltrix} because a new plot is rendered after you click a pixel, so after every click the plot window will resize to default.

Is there a way to 'remember' the dimensions a user selects and render new plots to a window of that size?

This isn't a significant problem in my own use of the package.

matt-dray commented 1 year ago

☝️ This also happens in Vanilla R GUI.