Skip to content

Instantly share code, notes, and snippets.

View QuLogic's full-sized avatar
🏖️
On vacation

Elliott Sales de Andrade QuLogic

🏖️
On vacation
View GitHub Profile
@QuLogic
QuLogic / tweet017.py
Created November 25, 2018 03:34
Cartopy 0.17 tweets
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
#################################################
# New projections
for proj in [ccrs.EckertI, ccrs.EckertII, ccrs.EckertIII, ccrs.EckertIV,
ccrs.EckertV, ccrs.EckertVI, ccrs.EqualEarth,
ccrs.EquidistantConic]:
@QuLogic
QuLogic / Cartopy straightAndDomain Calculations.ipynb
Last active October 12, 2018 09:05
Cartopy straightAndDomain Calculations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
matplotlib/tests/test_artist.py::test_clipping[svg] <- ../../../../usr/lib/python3.7/site-packages/matplotlib/tests/test_artist.py
==40== Conditional jump or move depends on uninitialised value(s)
==40== at 0x80888B0: _cairo_recording_surface_merge_source_attributes.isra.9 (cairo-recording-surface.c:1770)
==40== by 0x80890F3: _cairo_recording_surface_replay_internal (cairo-recording-surface.c:2007)
==40== by 0x808A1D3: _cairo_recording_surface_replay_and_create_regions (cairo-recording-surface.c:2197)
==40== by 0x80661A4: _paint_page (cairo-paginated-surface.c:417)
==40== by 0x80668A7: _cairo_paginated_surface_show_page (cairo-paginated-surface.c:583)
==40== by 0x80669B0: _cairo_paginated_surface_finish (cairo-paginated-surface.c:205)
==40== by 0x809F4D0: _cairo_surface_finish (cairo-surface.c:1030)
==40== by 0x80A0E98: cairo_surface_finish (cairo-surface.c:1079)
matplotlib/tests/test_agg.py::test_repeated_save_with_alpha <- ../../../../usr/lib64/python3.7/site-packages/matplotlib/tests/test_agg.py
==40== Conditional jump or move depends on uninitialised value(s)
==40== at 0x157CE210: UnknownInlinedFun (_util.cpp:196)
==40== by 0x157CE210: mplcairo::load_path_exact(_cairo*, pybind11::object, _cairo_matrix const*) (_util.cpp:225)
==40== by 0x157D0056: mplcairo::GraphicsContextRenderer::draw_path(mplcairo::GraphicsContextRenderer&, pybind11::object, pybind11::object, std::optional<pybind11::object>)::{lambda()#1}::operator()() const (_mplcairo.cpp:920)
==40== by 0x157E602C: mplcairo::GraphicsContextRenderer::draw_path(mplcairo::GraphicsContextRenderer&, pybind11::object, pybind11::object, std::optional<pybind11::object>) (_mplcairo.cpp:931)
==40== by 0x157F923D: void pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<void, mplcairo::GraphicsContextRenderer, mplcairo::GraphicsContextRenderer&, pybind11::object, pybind11::object, std::opt
suite name rms
legend legend_auto2 0.126
patheffects patheffect1 0.184
legend legend_expand 0.214
legend framealpha 0.215
legend legend_multiple_keys 0.223
legend legend_labels_first 0.24
cycles lineprop_cycle_basic 0.307
cycles color_cycle_basic 0.325
axes polar_coords 0.331
@QuLogic
QuLogic / output.md
Last active October 15, 2017 04:09
PPC Barbs problem

Fedora 26 x86 Output

$ g++ --version
g++ (GCC) 7.1.1 20170622 (Red Hat 7.1.1-3)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@QuLogic
QuLogic / gist:25c2b6a224348ee7cf4b54bafa8f8408
Last active October 5, 2017 07:53
Matplotlib FreeType build failures
Summary:
There are many changes in 2.6.1->2.6.2, but it's very small changes that can be papered
over with 0.1 tolerance. 2.6.4 added a new renderer, but also refactored the original
renderer. 2.6.5 reverted the new renderer, but not the original renderer, so it seems
the new failures remain.
2.6.2:
* 914 failed, 5961 passed, 26 skipped, 3 xfailed, 3 xpassed, 23 warnings
* Almost all of these are invisible, so a small tolerance change works.
* Bumping tolerance to 0.1:
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import matplotlib.pyplot as plt
import matplotlib.collections as mcollections
import matplotlib.patches as mpatches
import matplotlib.transforms as mtransforms
Invalid read of size 4
at 0x2F8D9350: free_stages (alloc_fctns.c:638)
by 0x2F8D933F: free_stages (alloc_fctns.c:634)
by 0x2F8D933F: free_stages (alloc_fctns.c:634)
by 0x2F8D933F: free_stages (alloc_fctns.c:634)
by 0x2F8D933F: free_stages (alloc_fctns.c:634)
by 0x2F8D933F: free_stages (alloc_fctns.c:634)
by 0x2F8D942F: free_channel (alloc_fctns.c:681)
by 0x2F8E363D: evresp_itp (evresp.c:563)
by 0x2F8E3EF6: evresp (evresp.c:900)
import matplotlib.pyplot as plt
from matplotlib.colors import Normalize
import numpy as np
import cartopy.crs as ccrs
import time
NROW = NCOL = 1
nlats, nlons = (241, 480)