Skip to content

Fix climate viz title and source link in gallery metadata #50

Merged
tdhock merged 2 commits intoanimint:gh-pagesfrom
ANAMASGARD:fix/gallery-issue-35-climate-title
Apr 14, 2026
Merged

Fix climate viz title and source link in gallery metadata #50
tdhock merged 2 commits intoanimint:gh-pagesfrom
ANAMASGARD:fix/gallery-issue-35-climate-title

Conversation

@ANAMASGARD
Copy link
Copy Markdown
Contributor

Gallery Title Fix (Fixes #35)

Fixed title mismatch for climate visualization:

  • Before: "Climate change sensor stations"
  • After: "CRUTEM4 Temperature Sensor Stations"

The title now matches what's in the source code. Fixed by clearing cached metadata and re-running update_gallery().

Preview

https://ANAMASGARD.github.io/gallery/

@ANAMASGARD ANAMASGARD changed the title Fix climate viz title and source link in gallery metadata (fixes #35) Fix climate viz title and source link in gallery metadata Mar 22, 2026
@suhaani-agarwal
Copy link
Copy Markdown
Contributor

image

I still see the same title as before

@suhaani-agarwal
Copy link
Copy Markdown
Contributor

the issue is likely coming from the original source itself. i think you’ll need to:

  1. fork the source repository https://github.com/biplab-sutradhar/climate-change-sensor-stations
  2. update the source code (whatever is needed to run it successfully and generate the repo of the viz via animint2pages
  3. re-run the code to regenerate the visualization
  4. add the updated output to the gallery using your fork as the new source (following the usual gallery steps)

also, the current repo structure is a bit confusing -- the source code and data files are in the main branch, while the generated visualization is in gh-pages, and some files seem duplicated across branches. you may need to clean this up in your fork for things to work properly.

@ANAMASGARD
Copy link
Copy Markdown
Contributor Author

Hi @suhaani-agarwal, thanks for the detailed review!
Here what I did :-

  • Forked the repo

  • Fixed figure-stations.R — updated title, source URL, and switched to animint2pages() .

  • Regenerated the viz — fresh plot.json, .tsv chunks, and Capture.PNG on gh-pages .

  • Cleaned repo structure — source files on main, generated output on gh-pages only .

  • Updated gallery — repos.txt, meta.csv, re-ran update_gallery()

Missing title in screenshot — animint2 renders the title as a browser <title> tag, not as a visible heading in the plot. It is correctly set in plot.json and the gallery reads it from there.

Live viz: https://anamasgard.github.io/climate-change-sensor-stations/
Source: https://github.com/ANAMASGARD/climate-change-sensor-stations/blob/main/figure-stations.R

Copy link
Copy Markdown
Contributor

@suhaani-agarwal suhaani-agarwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, but in your live preview of the gallery: https://anamasgard.github.io/gallery/ , i still see same old links (https://biplab-sutradhar.github.io/climate-change-sensor-stations/ )

@ANAMASGARD
Copy link
Copy Markdown
Contributor Author

Thank You Ma'am @suhaani-agarwal for feedback ,
https://anamasgard.github.io/gallery/

  • My this PR branch (fix/gallery-issue-35-climate-title) has the correct new links .
  • But before your feedback my fork's gh-pages branch still had the old biplab-sutradhar links .

Can you please check again , now i have fixed it .
Screenshot From 2026-03-25 11-08-26

Copy link
Copy Markdown
Contributor

@suhaani-agarwal suhaani-agarwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this looks better now, thanks.

It would be helpful if you could make the screenshot a bit shorter like below,
image

Also, I had a question - why are the source files and the generated visualization kept in the same repository and on different branches? Typically, we keep one repository for the source files (like figure-stations.R, along with any .R / .RData files required to generate the visualization), and then running animint2pages generates a separate repository containing the visualization files along with a README.md that has the link to the live viz.

@ANAMASGARD
Copy link
Copy Markdown
Contributor Author

Ma'am @suhaani-agarwal I just double-checked both branches. My main branch has exactly 3 files — figure-stations.R (the source code), crutem.grid.RData, and temperatures.RData. My gh-pages branch has all the generated output files — the .tsv data chunks, animint.js, animint.css, and plot.json — everything that animint2pages() automatically produces.

The only thing I noticed is that figure-stations.R also appears on gh-pages, which is because animint2pages() copies it there by default along with the visualization output. That's expected behavior — the source .R file is shared between both branches, not exclusive to just main , but i have removed it from the gh-pages branch now it is only in the main branch .

I have also added the shorter screenshot as you asked for , Thank You !

@ANAMASGARD
Copy link
Copy Markdown
Contributor Author

@suhaani-agarwal thanks again for feedback , can you please check again i have update and moved from mono repo to dual repo , source repo and gh-page repo with holds the visualization

Copy link
Copy Markdown
Contributor

@suhaani-agarwal suhaani-agarwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! looks good now

@suhaani-agarwal
Copy link
Copy Markdown
Contributor

@tdhock can you please review this PR when you get time?

@suhaani-agarwal
Copy link
Copy Markdown
Contributor

@ANAMASGARD the issue #35 also refers to another gallery example : here , same issue of title exists, please fix that as well in the same way before closing the issue

@ANAMASGARD
Copy link
Copy Markdown
Contributor Author

For example, in figure-candidates-interactive.R, the title is set as "LOPART algorithm", but in the gallery it currently appears as "Interactive visualization of candidate selection".

Screenshot From 2026-04-07 11-04-11

@suhaani-agarwal The above was the issue but when I checked repos.txt in the gallery and the LOPART example currently points to tdhock/2025-08-29-LOPART-candidates-grid, not biplab-sutradhar/figure-candidates-interactive. The biplab repo is not in the gallery at all.

  • The old wrong title "Interactive visualization of candidate selection"
    no longer appears anywhere in the gallery.
  • Could you clarify which specific entry still has the title mismatch, so I can fix the right one?
  • In the meantime I have also fixed the climate entry in repos.txt to correctly point to
    ANAMASGARD/climate-change-sensor-stations-pages instead of the old single-repo URL.

@suhaani-agarwal
Copy link
Copy Markdown
Contributor

@suhaani-agarwal The above was the issue but when I checked repos.txt in the gallery and the LOPART example currently points to tdhock/2025-08-29-LOPART-candidates-grid, not biplab-sutradhar/figure-candidates-interactive. The biplab repo is not in the gallery at all.

  • The old wrong title "Interactive visualization of candidate selection"
    no longer appears anywhere in the gallery.
  • Could you clarify which specific entry still has the title mismatch, so I can fix the right one?

alright i just checked the #37 fixed this title mismatch.

@suhaani-agarwal
Copy link
Copy Markdown
Contributor

this looks good now, @tdhock please review whenever you have time

@tdhock
Copy link
Copy Markdown
Contributor

tdhock commented Apr 14, 2026

great thanks!

@tdhock tdhock merged commit 68286d1 into animint:gh-pages Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mismatch between source titles and gallery titles

3 participants