question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data not displaying on public build but is displaying on local build

See original GitHub issue

Details

Expected Result

When running make html locally via terminal, the build for Overlay_11a displays data via contourf on the map. As seen below:

image

Which is the expected behavior

Actual Result

When this repo is built publicly/via RTD, the data disappears:

image

The environments are the same between the local and public versions of the builds. I have also tried editing the code to change the order that the data is plotted on the map and that did not resolve this issue. I’ve seen somewhat similar issues from a few years back, but their resolutions didn’t lead to a solution here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
astrojuanlucommented, Sep 28, 2021

I tested this:

24551  [2021-09-28 15:15:43] git reset --hard b62df12
24552  [2021-09-28 15:15:45] mamba env create --name overlay11_issues -f conda_environment.yml 
24553  [2021-09-28 15:17:02] conda activate overlay11_issues
24554  [2021-09-28 15:17:11] python Plots/Overlays/NCL_overlay_11a.py

and I still got the empty plot. However, with this change:

diff --git a/Plots/Overlays/NCL_overlay_11a.py b/Plots/Overlays/NCL_overlay_11a.py
index 1a9615f..d2a07d4 100644
--- a/Plots/Overlays/NCL_overlay_11a.py
+++ b/Plots/Overlays/NCL_overlay_11a.py
@@ -147,7 +147,7 @@ newcmp = gvutil.truncate_colormap(gvcmaps.BkBlAqGrYeOrReViWh200,
 
 # Draw the temperature contour plot with the subselected colormap
 # (Place the zorder of the contour plot at the lowest level)
-cf = ax.contourf(lon, lat, T, levels=clevs, cmap=newcmp, zorder=1)
+cf = ax.contourf(lon, lat, T, levels=clevs, cmap=newcmp, zorder=3)
 
 # Draw horizontal color bar
 cax = plt.axes((0.14, 0.08, 0.74, 0.02))

I got the same plot I got here: https://github.com/readthedocs/readthedocs.org/issues/8519#issuecomment-924353362

😕

I suspect there is some caching behavior from sphinx-gallery that makes it more difficult to evaluate the changes locally, as well as Read the Docs own caching policies. That’s why I ran the script directly with python Plots/Overlays/NCL_overlay_11a.py.

In any case, I still can’t say that this is a Read the Docs issue.

1reaction
astrojuanlucommented, Sep 22, 2021

@michaelavs I see that you’ve been doing some experiments on the branch lately. Can you point to a specific commit that should show the correct plot locally, but showed an empty plot on Read the Docs?

Locally, https://github.com/NCAR/GeoCAT-examples/commit/e410731d543d05e20b50586bce8fd2603f4a7664 shows the plot covered with data (also the sea), like the screenshot I shared yesterday, and https://github.com/NCAR/GeoCAT-examples/commit/39f446a1f023092caa205b144c74a4d754fbce29 shows the empty plot. Therefore, I can’t reproduce the “correct” plot locally (happy to follow this conversation on https://github.com/NCAR/GeoCAT-examples/pull/415).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does API data display in local host but not published site?
I've just completed a weather app and I'm having some issues with it. This is my first time working with an API and...
Read more >
Troubleshoot Data Sources - Tableau Help
Troubleshoot Data Sources. For users to work with Tableau Server data sources, up to three things need to be in place: Permissions for...
Read more >
Fetching data from the server - Learn web development | MDN
This article shows how to start working with Fetch to fetch data from the server.
Read more >
WordPress Changes Not Showing? Here's How to Fix ... - Kinsta
Having issues with WordPress changes not showing on your site? It's usually problems with caching - we'll show you how to fix the...
Read more >
Build web apps in WebView - Android Developers
Within your Android app, you can create an Activity that contains a WebView , then use that to display your document that's hosted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found