Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Segyviewer | 72 | 1 | 1 | 3 years ago | 10 | October 15, 2018 | 5 | lgpl-3.0 | Python | |
Python viewer for SEG-Y files | ||||||||||
Matplotlibpyqt5 | 36 | 7 years ago | 1 | Python | ||||||
Embedding matplotlib plot on PyQt5 GUI! | ||||||||||
Plotbrowser | 32 | 8 years ago | mit | Python | ||||||
a GUI to change the appearance of matplotlib plots | ||||||||||
Sciplot Pyqt | 30 | 1 | 1 | a year ago | 7 | November 29, 2021 | 5 | other | Python | |
A Matplotlib-wrapped user-interface for creating and editing publication-ready images and plots | ||||||||||
Matplotlib_qtquick_playground | 21 | 3 months ago | mit | Python | ||||||
Matplotlib and PyQt - QtWidgets vs QtQuick | ||||||||||
Hm_car2 | 16 | a month ago | 1 | C | ||||||
传智教育无人驾驶课程2期 | ||||||||||
The Complete Python 3 Course Beginner To Advanced | 15 | 2 years ago | Jupyter Notebook | |||||||
While doing this course i worked on multiple technologies and python as base language for programming. These are all of the projects i did throughout this course. I know the instructor hasn't provided codes for anything so you can fork my repository and try. | ||||||||||
Latticegraph_designer | 13 | 6 years ago | mit | Python | ||||||
PyQt based GUI tool which allows to visualize, design and export the lattice graph models. | ||||||||||
Recruit | 13 | 6 years ago | Python | |||||||
这个项目的目的是整合招聘信息,并做一定处理。 | ||||||||||
Mpl_animationmanager | 12 | 6 years ago | mit | Python | ||||||
Matplotlib animation manager (GUI) |
pip3 install chartkra
chartkra facilitates the chart displaying on PyQt widgets by the use of matplotlib. It can easily to display the following figures:
It's very easy to getting started with chartkra. What you need to do is to instantiate a chartkra
object, and pass its get_widget
function to PyQt Widget's addWidget
function:
# initialize
chart = chartkra()
self.gridLayout.addWidget(chart.get_widget())
# draw charts
# ...
It's the same way to showing a heatmap, just need to instantiate a HeatMap
object instead.
# initialize
heatmap = HeatMap()
self.gridLayout.addWidget(heatmap.get_widget())
# draw heatmap
# ...
Use function draw_plot
to draw. Pass what you're going to show on x axis to listx
, and what you're going to show on y axis to listy
.
chart.draw_plot(listx=['12/01', '12/02', '12/03'], listy=[1, 2, 3])
Use function draw_bar
to draw. Pass what you're going to show on x axis to listx
, and what you're going to show on y axis to listy
.
chart.draw_bar(listx=['zone1', 'zone2', 'zone3'], listy=[1, 2, 3])
Use function draw_pie
to draw. The sizes and the labels reference the partition in the pie figure respectively.
chart.draw_pie(sizes=[1, 2, 3], labels=['zone1', 'zone2', 'zone3'])
heatmap.set_zone(pic='office_inte.jpg', width=8.2, height=10.836, points=points)
heatmap.set_display(accuracy=25, style=plt.cm.jet, rotation=0, title='Pedestrian Trajectory Heatmap')
heatmap.set_colorbar(position='right', width='5%', padding=0.1)
heatmap.show()
When creating a heatmap, it is needed to declare the function set_zone
and its arguments:
By setting up argument title
and title_padding
in function set_display
, you can customized the title of figure and the padding between title and figure.
![]() |
![]() |
---|---|
![]() |
![]() |
It is customized by argument accuracy
in function set_display
![]() |
![]() |
---|---|
![]() |
![]() |
It is customized by argument style
in function set_display
. The accepted styles can be found on https://matplotlib.org/examples/color/colormaps_reference.html
![]() |
![]() |
---|---|
![]() |
![]() |
It is customized by argument rotation
in function set_display
. The accepted values includes 0, 90, 180 and 270.
![]() |
![]() |
---|---|
![]() |
![]() |
It is customized by assign arguments in function set_colorbar
![]() |
![]() |
![]() |
---|
set_colorbar
.disable_heatmap_layer
, the figure will only display picture.disable_img_layer
, the figure will only display heatmap layer.In general situations, using function show
would be enough for showing a figure. If you want to save the figure to file as well, just declare function show_and_save_fig
instead and assign arguments filename
and display resolution like:
heatmap.show_and_save_fig(filename='sample.png', dpi=150)