Git Product home page Git Product logo

colorhistogram's People

Contributors

tody411 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

colorhistogram's Issues

Error in python 3.6 during plot?

@tody411
Thanks for your excellent project . I am using your program, but it gives the following error:

File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile
execfile(filename, namespace)

File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "D:/feasibilityAnalysis/ColorImageandNDVI/Color/ColorHistogram1/Test1DHistogram.py", line 28, in
hist1D.plot(ax)

File "D:\feasibilityAnalysis\ColorImageandNDVI\Color\ColorHistogram1\color_histogram\core\hist_1d.py", line 37, in plot
self._plotter.plot(ax)

File "D:\feasibilityAnalysis\ColorImageandNDVI\Color\ColorHistogram1\color_histogram\core\hist_1d.py", line 130, in plot
ax.bar(color_samples, color_densities, width=width, color=colors)

File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib_init_.py", line 1589, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)

File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\axes_axes.py", line 2430, in bar
label='nolegend',

File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\patches.py", line 707, in init
Patch.init(self, **kwargs)

File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\patches.py", line 89, in init
self.set_linewidth(linewidth)

File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\patches.py", line 368, in set_linewidth
self._linewidth = float(w)

TypeError: only size-1 arrays can be converted to Python scalars

I have changed "xrange" to "range" due to python version. The error arise in:

ax.bar(color_samples, color_densities, width=width, color=colors)

Would you suggest me please to solve this problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.