Use this tag for questions about the GR plotting framework. GR is a universal framework for cross-platform visualization applications. It offers developers a compact, portable and consistent graphics library for their programs. Applications range from publication quality 2D graphs to the representation of complex 3D scenes.
Questions tagged [gr]
10 questions
3
votes
0 answers
Julia Plots-GR, export to PDF, retain text editability
I am trying to save some figures I made in Julia (Plots package, GR backend) to PDFs and I love the aesthetics + being able to save as vector graphics. However, I may need to invariably tweak things in Illustrator. When in Matlab, the plots exported…

ITA
- 3,200
- 3
- 18
- 32
2
votes
1 answer
I'm having trouble generating a 3D surface plot in Julia (I'm using GR backend)
I have a program to solve 1D Burguer's equation. I have the following values/dimensions, which are giving me a dimensional error. I don't understand what is going wrong. If anyone can help me, I appreciate it.
julia> size(xs)
(50,)
julia>…

BuddhiLW
- 608
- 3
- 9
2
votes
0 answers
GR examples in Python don't open a window with visualization
I installed GR and its dependencies on Ubuntu 20.04 with Python 3.8.10 following instructions on https://gr-framework.org/python.html#installation. The first example:
from gr.pygr import mlab
mlab.plot(range(100), lambda x: x**2)
Doesn't create a…

Paul Jurczak
- 7,008
- 3
- 47
- 72
1
vote
1 answer
How do I remedy this attributeerror in terminal while trying to execute a gradio interface?
in Mac terminal, gotten similar errors in Jupyter. When I try and run this python app. I keep getting these errors.
line 3, in
import gradio as gr line 6, in
demo = gr.Interface(fn=greet, inputs="text", outputs="text") AttributeError: partially…

David Rothstein
- 11
- 2
1
vote
0 answers
How to suppress GKS messages to REPL?
I'm doing some plotting with Plots and the GR backend. I have some NaNs in the data that I use for ribbon and filled plots. This results in gaps in the traces, which is fine and by design, and a lot of this message:
GKS: Number of points is…

aquaticapetheory
- 293
- 1
- 8
1
vote
0 answers
Can't run GTK with GR plot
I'm trying to run a GR plot in a GTK Window. The example code is here https://github.com/jheinen/GR.jl/blob/master/examples/gtk_ex.jl My system is a MacBook Pro M1.
I get an error that:
julia> FATAL ERROR: Gtk state corrupted by error thrown in a…

BAR
- 15,909
- 27
- 97
- 185
1
vote
2 answers
Plot window is blank for both GR and Plotly
I am trying to plot using both GR and Plotly but all I'm getting is a blank window. Running on a MacBook Pro M1. No problems with lib install.
using Plots
gr()
function plot_calendar_viz()
plot(Plots.fakedata(50, 5), w = 3)
end
using…

BAR
- 15,909
- 27
- 97
- 185
0
votes
0 answers
Plots.jl GKS: can't connect to GKS socket application on Windows
Trying to use Plots package, but getting following issue;
julia> using Plots
julia> gr()
Plots.GRBackend()
julia> Plots.plot(rand(5), rand(5))
connect: No error
GKS: can't connect to GKS socket application
GKS: Open failed in routine OPEN_WS
GKS:…

msinfo
- 1,147
- 6
- 21
- 39
0
votes
1 answer
How to set the output size in `savefig()` in `GR.jl`
I have a simple question about using GR.jl directly (Not using Plots.jl).
I am displaying an image of size 300x300.
I want to display it on screen and save the plot with savefig:
using GR
img = rand(300, 300)
imshow(img)
savefig("img.png")
I…

Mark
- 175
- 1
- 6
0
votes
2 answers
am i using while wrong (PYTHON)
I'm trying to get the user to input the right name, but when I run it keeps asking me to rewrite even when I entered jayson tatum, but when I wrote lebron james it works? Thanks for your inspections
Here's the code
while favPlayer != 'lebron james'…