sdss / marvin

Data access and visualization for MaNGA. http://sdss-marvin.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
56 stars 32 forks source link

cannot access maps #807

Closed sreelakshmi540 closed 6 months ago

sreelakshmi540 commented 7 months ago

Describe the bug Everytime I am facing this issue whenever i am trying to access a map.

[ERROR]: Traceback (most recent call last):   File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3577, in run_code     exec(code_obj, self.user_global_ns, self.user_ns)   File "/tmp/ipykernel_3768/412037474.py", line 5, in <module>     masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid')   

File "/home/oem/.local/lib/python3.10/site-packages/marvin/tools/maps.py", line 766, in get_bpt     raise marvin.core.exceptions.MarvinError( marvin.core.exceptions.MarvinError: unknown keyword plt_style. You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new). Fill out a subject and some text describing the error that just occurred. If able, copy and paste the full traceback information into the issue as well.  Please suggest how to resolve this issue

To Reproduce Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

havok2063 commented 7 months ago

What version of marvin, matplotlib and seaborn are you using? Can you provide a code snippet to reproduce the issue?

sreelakshmi540 commented 7 months ago

hello,

marvin version 2.8.0(latest) matplotlib version 3.8.3 code- masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid') error-

[ERROR]: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3577, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "/tmp/ipykernel_3768/2690982991.py", line 1, in masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid') File "/home/oem/.local/lib/python3.10/site-packages/marvin/tools/maps.py", line 766, in get_bpt raise marvin.core.exceptions.MarvinError(marvin.core.exceptions.MarvinError: unknown keyword plt_style. You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new). Fill out a subject and some text describing the error that just occurred. If able, copy and paste the full traceback information into the issue as well.

When I changed the colour bar of some plots,the result is with some other colour bar range here I attached an image please go through.

On Tue, Apr 16, 2024 at 8:18 PM Brian Cherinka @.***> wrote:

What version of marvin, matplotlib and seaborn are you using? Can you provide a code snippet to reproduce the issue?

— Reply to this email directly, view it on GitHub https://github.com/sdss/marvin/issues/807#issuecomment-2059279638, or unsubscribe https://github.com/notifications/unsubscribe-auth/BH3UMLKBD7J5PDDXABTCYZ3Y5U25JAVCNFSM6AAAAABGJFIL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZGI3TSNRTHA . You are receiving this because you authored the thread.Message ID: @.***>

sreelakshmi540 commented 7 months ago

code- import matplotlib.pyplot as plt from marvin.tools.maps import Maps import marvin.utils.plot.map as mapplot from marvin.tools.image import Image plt.style.use('seaborn-v0_8-notebook') plt.ion() maps = Maps(plateifu='10223-6102') masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid')

On Wed, Apr 17, 2024 at 9:26 PM Sree Lakshmi < @.***> wrote:

hello,

marvin version 2.8.0(latest) matplotlib version 3.8.3 code- masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid') error-

[ERROR]: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3577, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "/tmp/ipykernel_3768/2690982991.py", line 1, in masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid') File "/home/oem/.local/lib/python3.10/site-packages/marvin/tools/maps.py", line 766, in get_bpt raise marvin.core.exceptions.MarvinError(marvin.core.exceptions.MarvinError: unknown keyword plt_style. You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new). Fill out a subject and some text describing the error that just occurred. If able, copy and paste the full traceback information into the issue as well.

When I changed the colour bar of some plots,the result is with some other colour bar range here I attached an image please go through.

On Tue, Apr 16, 2024 at 8:18 PM Brian Cherinka @.***> wrote:

What version of marvin, matplotlib and seaborn are you using? Can you provide a code snippet to reproduce the issue?

— Reply to this email directly, view it on GitHub https://github.com/sdss/marvin/issues/807#issuecomment-2059279638, or unsubscribe https://github.com/notifications/unsubscribe-auth/BH3UMLKBD7J5PDDXABTCYZ3Y5U25JAVCNFSM6AAAAABGJFIL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZGI3TSNRTHA . You are receiving this because you authored the thread.Message ID: @.***>

sreelakshmi540 commented 7 months ago

Reminder

please reply to this mail as soon as possible.

On Wed, Apr 17, 2024 at 9:28 PM Sree Lakshmi < @.***> wrote:

code- import matplotlib.pyplot as plt from marvin.tools.maps import Maps import marvin.utils.plot.map as mapplot from marvin.tools.image import Image plt.style.use('seaborn-v0_8-notebook') plt.ion() maps = Maps(plateifu='10223-6102') masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid')

On Wed, Apr 17, 2024 at 9:26 PM Sree Lakshmi < @.***> wrote:

hello,

marvin version 2.8.0(latest) matplotlib version 3.8.3 code- masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid') error-

[ERROR]: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3577, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "/tmp/ipykernel_3768/2690982991.py", line 1, in masks, fig, axes = maps.get_bpt(plt_style='seaborn-v0_8-darkgrid') File "/home/oem/.local/lib/python3.10/site-packages/marvin/tools/maps.py", line 766, in get_bpt raise marvin.core.exceptions.MarvinError(marvin.core.exceptions.MarvinError: unknown keyword plt_style. You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new). Fill out a subject and some text describing the error that just occurred. If able, copy and paste the full traceback information into the issue as well.

When I changed the colour bar of some plots,the result is with some other colour bar range here I attached an image please go through.

On Tue, Apr 16, 2024 at 8:18 PM Brian Cherinka @.***> wrote:

What version of marvin, matplotlib and seaborn are you using? Can you provide a code snippet to reproduce the issue?

— Reply to this email directly, view it on GitHub https://github.com/sdss/marvin/issues/807#issuecomment-2059279638, or unsubscribe https://github.com/notifications/unsubscribe-auth/BH3UMLKBD7J5PDDXABTCYZ3Y5U25JAVCNFSM6AAAAABGJFIL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZGI3TSNRTHA . You are receiving this because you authored the thread.Message ID: @.***>

nina2100stilllive commented 6 months ago

Dear professor, I have the same question, could you tell me how to deal with it Thanks!

bretthandrews commented 6 months ago

get_bpt() does not have a keyword plt_style, so remove that from the function call, i.e.,

masks, fig, axes = maps.get_bpt()