Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnuplot (including wgnuplot) is unusable. #22930

Open
3 of 6 tasks
MehdiChinoune opened this issue Dec 28, 2024 · 2 comments
Open
3 of 6 tasks

gnuplot (including wgnuplot) is unusable. #22930

MehdiChinoune opened this issue Dec 28, 2024 · 2 comments
Labels

Comments

@MehdiChinoune
Copy link
Collaborator

Description / Steps to reproduce the issue

Type gnuplot in terminal, It closes without showing anything.
wgnuplot shows a GUI but commands are not visible.

Expected behavior

To be usable

Actual behavior

Described above.

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

Maybe packaging gnuplot the way It's packaged by the upstream, using Makefile instead of autotools.

@MehdiChinoune MehdiChinoune changed the title gnuplot (and wgnuplot) is unusable. gnuplot (including wgnuplot) is unusable. Dec 29, 2024
@mmuetzel
Copy link
Collaborator

mmuetzel commented Jan 6, 2025

It seems to be working when invoked by Octave (tested in MINGW64 and UCRT64 environments).

Steps to reproduce:

  • install Octave and gnuplot, e.g., with pacboy -S octave:p gnuplot:p
  • start Octave with octave
  • switch to gnuplot graphics with graphics_toolkit gnuplot (ignore the deprecation warning)
  • open a plot, e.g., with plot ([0 1]). (The plot window opens off-screen for some reason. But if I move it on-screen, it looks fine albeit slightly blurry.)
    image

@mmuetzel
Copy link
Collaborator

mmuetzel commented Jan 9, 2025

Since gnuplot is working when it is controlled through a pipe (e.g., in Octave), but it isn't working from the command line, it might be an issue with how gnuplot uses readline.

Additionally, there seems to be a relocation issue pointed out in this (otherwise unrelated) thread:
https://octave.discourse.group/t/ci-stuck-after-make-check-on-windows/6097/3

  json\jsonencode.tst ............................................ pass   54/54   [ 0.109s /  0.109s]
Can't find PostScript prologue file prologue.ps
	loadpath is empty
	gnuplotrc is read from D:/a/msys64/mingw64/share/gnuplot/6.0
Please copy prologue.ps to one of the above directories
or set the environmental variable GNUPLOT_PS_DIR
or set the loadpath appropriately
         line 0: Plot failed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants