小编use*_*027的帖子

Python Matplotlib添加Colorbar

我使用MatlobLib和shapereader的"Custom"形状有问题.导入和查看插入的面部工作正常,但我无法在我的图上放置颜色条.

我已经从教程中尝试了几种方法,但我非常确定这个问题有一个智能解决方案.

也许有人可以帮助我,我现在的代码附在下面:

from formencode.national import pycountry
import itertools
from matplotlib import cm, pyplot
from matplotlib import 
from mpl_toolkits.basemap import Basemap
from numpy.dual import norm
import cartopy.crs as ccrs
import cartopy.io.shapereader as shpreader
import matplotlib as mpl
import matplotlib.colors as colors
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import numpy as np

def draw_map_for_non_normalized_data_with_alpha2_counrty_description(data, title=None):

m = Basemap()
ax = plt.axes(projection=ccrs.PlateCarree())

list = []
sum = 0
for key in data:
    sum += data[key]

for key in data.keys():
    new_val …
Run Code Online (Sandbox Code Playgroud)

python matplotlib legend shapes cartopy

5
推荐指数
1
解决办法
9444
查看次数

Jersey:com.sun.jersey.spi.inject.Errors $ ErrorMessagesException

我使用球衣(1.8),maven和hibernate时遇到了问题.

我收到此错误("完整"日志)

        INFO: Scanning for root resource and provider classes in the packages:
      de.tum.fml.idp.backend.rest
    Dez 04, 2013 2:29:40 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
    INFO: Root resource classes found:
      class de.tum.fml.idp.backend.rest.PlayerWebService
      class de.tum.fml.idp.backend.rest.RestSample
    Dez 04, 2013 2:29:40 PM com.sun.jersey.api.core.ScanningResourceConfig init
    INFO: No provider classes found.
    Dez 04, 2013 2:29:41 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
    INFO: Initiating Jersey application, version 'Jersey: 1.8 06/24/2011 12:17 PM'
    Dez 04, 2013 2:29:42 PM com.sun.jersey.spi.inject.Errors processErrorMessages
    SEVERE: The following errors and warnings have been detected with resource and/or provider classes: …
Run Code Online (Sandbox Code Playgroud)

java rest web-services hibernate maven

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

cartopy ×1

hibernate ×1

java ×1

legend ×1

matplotlib ×1

maven ×1

python ×1

rest ×1

shapes ×1

web-services ×1