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

Custom data viewer is not working #2420

Closed
Gabriel-p opened this issue Jun 13, 2023 · 9 comments · Fixed by #2422
Closed

Custom data viewer is not working #2420

Gabriel-p opened this issue Jun 13, 2023 · 9 comments · Fixed by #2422
Labels

Comments

@Gabriel-p
Copy link

Describe the bug
Title

To Reproduce

Followed the instructions given here https://docs.glueviz.org/en/stable/customizing_guide/custom_viewer.html, ie added the first block of code to my config.py.

Expected behavior
Be able to load the Shot Plot new custom viewer

Screenshots
Captura de pantalla de 2023-06-13 11 32 30

Details:
Nothing happens as shown in the screenshot above, no errors in the console.

  • Operating System: elementary 7 (based on Ubuntu 22.04.2 LTS)
  • Python version (python --version): 3.11.3
  • Glue version (glue --version): 1.11.0
  • How you installed glue: pip

Additional context
Add any other context about the problem here.

@Gabriel-p Gabriel-p added the bug label Jun 13, 2023
@jfoster17
Copy link
Member

This sounds vaguely familiar. Is the problem just that the axes aren't being reset? That is, if you change the limits in the plot to zoom out (you may have to use the zoom/magnifying glass to do it manually) will it appear?

@Gabriel-p
Copy link
Author

Zooming has no effect. I also have no way of controlling the dataset as you can see in the lower left corner, there's nothing there:

Captura de pantalla de 2023-06-13 14 48 31

@Gabriel-p
Copy link
Author

BTW, other views work just fine:

Captura de pantalla de 2023-06-13 14 51 42

@jfoster17
Copy link
Member

Sorry, I meant zooming out (right-click and drag the magnifier tool). The data lie between x (-250, +250) and y (0, 300).

@Gabriel-p
Copy link
Author

Gabriel-p commented Jun 13, 2023

You are correct, there it is! I'll close this issue now. Do you know why I don't get any options to edit the data (size, font, limits, axis, legend, etc)?

Thank you BTW!

Captura de pantalla de 2023-06-13 15 20 47

@Gabriel-p
Copy link
Author

Also if you don't mind, could you tell me how to make a simple scatter plot? I've been trying to get one to plot all morning and nothing. I need to generate three scatter plots and a simple histogram but I can't get past generating even a single scatter plot

@jfoster17
Copy link
Member

Simple viewer options come later in the tutorial. Most of the other customization options actually require a bit more logic on the backend and you would need to use a full custom viewer.

I'm going to re-open this issue if you don't mind -- we should fix this bug so that simple custom viewers resize to the data.

@jfoster17 jfoster17 reopened this Jun 13, 2023
@jfoster17
Copy link
Member

Also if you don't mind, could you tell me how to make a simple scatter plot? I've been trying to get one to plot all morning and nothing. I need to generate three scatter plots and a simple histogram but I can't get past generating even a single scatter plot

Maybe I don't understand what you want, your "BTW, other views work just fine:" comment includes a screenshot of a scatter plot (with a categorical variable on one axis, but still).

@Gabriel-p
Copy link
Author

I was referring to making a scatter plot in the custom view, but I've figured it out already. Thank you!

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

Successfully merging a pull request may close this issue.

2 participants