Package: paperviz
Data Visualisation - CRUISE GroupLeader: Dr Wei ShaoAssociated Leader: Dr Nan GaoTeam Member: Zhiqiu Chen, Ying Guo, Lanzhou Jiang, Junwei Ye, Haoran Ma, Zhengyuan Xu, Ziyan PengProfessional Python graphs for Scientific PapersThese visualisation codes show visualization modules by Seaborn and Matplotlib of Python. The codes were written by Cruise Group of RMIT University. Please refer to the following contents for details. If you're not into reading lenghty explanations at all, feel free to jump right into the commented code.DependenciesIf you want to run the codes, you need to install some other Python libraries in addition to Seaborn and Matplotlib, which have been marked in the codes section.InstallThe latest stable release (and required dependencies) can be installed from PyPI:pip install papervizYou may instead want to use the development version from Github:pip install git+https://github.com/swsamleo/Paper-Viz.gitPaper-Viz is also available from Anaconda and can be installed with conda:conda install papervizDevelopmentPaper-Viz development takes place on Github:https://github.com/swsamleo/Paper-VizDocumentationArea ChartBy coloring the area between the axis and the line, the area map not only emphasizes the peaks and valleys, but also emphasizes the duration of the high and low points. The longer the high point lasts, the larger the area under the line. The stacked area plot can show the total value and item values, the percentage area chart can show the percentage of each item.Multi-item area chartStacked area chartPercentange area chartfrom paperviz.area.area import Area_plot

file_name = "museum_visitors_line.csv"
a = Area_plot(file_name)
a.area(file_name)Bar ChartA bar chart is a classic way to visualise items based on counting or any given indicator.Single item bar chartMulti-item grouped bar chartError bar chart with two groupsStacked bar chart with two groupsBubble PlotA bubble chart is a variation of a scatter chart in which the data points are replaced with bubbles, and an additional dimension of the data is represented in the size of the bubbles. Just like a scatter chart, a bubble chart does not use a category axis — both horizontal and vertical axes are value axes.Bubble chart with each bubble name and sizesMulti-item bubble plot with categorical colorsBubble plot with a color mapfrom from paperviz.bubble.bubble import Bubble

file_name = "bubble_gdp.xlsx"
b = Bubble(file_name)
b.bubble_plot(file_name)Scatter PlotA scatter plot is a basic chart used to study the relationship between two variables. If you have multiple groups in your data, you might want to visualize each group in a different color.Single item scatter plot with trend lineMulti-item scatter plotScatter plot with multi-markfrom scatter import Scatter

file_name = 'ice_cream.xlsx'
a = Scatter(file_name)
a.scatter_plot(file='ice_cream.xlsx')MapMaps have been used for a long time to help people navigate on road journeys or comprehend the closeness of one site to another. The material on maps, as well as the maps themselves, have become digitized, interactive, and more attractive as they have been integrated into data analysis and reporting. Seeing location data mapped and integrated in visualizations has increased comprehension and provided a useful, fresh context for more people.Point MapKDE(Kernel density estimation) MapPoint and KDE(Kernel density estimation) MapSankey MapChoropleth MapRoute MapHistogramA histogram is a graphical display of data using bars of different heights. In a histogram, each bar groups numbers into ranges. Taller bars show that more data falls in that range. A histogram displays the shape and spread of continuous sample data. The height can mean density or actual value.Single item histogram with a density curveMulti-item histogram which height means actual valueStacked histogramfrom histogram import hist_plot

file_name = "2.xlsx"
a = hist_plot(file_name)
a.hist(file_name)HeatmapA heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.Heatmap with values in blue to yellow coloursfrom heatmap import heat_map

file_name = '1.xlsx'
a = heat_map(file_name)
a.heat( file='1.xlsx')Time Series PlotTime series plots are used to show how a given metric changes over time.Time series plot with maximum, minimum valuesTime series plot with peaks and troughsTime series plot with multivariablesTime series plot with multiple plotsTime series plot with regional zoom-infrom time_series import TimeSeries

file_name = "mortality.csv"
ts = TimeSeries(file_name)
ts.plot()Line ChartA line chart or line plot or line graph or curve chart is a type of chart which displays information as a series of data points called 'markers' connected by straight line segments. It is a basic type of chart common in many fields.Multi-line chartMulti-item line chart with categorical colours and marksDouble axis line chartInsetplot line chartPie ChartA pie chart is the classic way of displaying composition. However, it is generally not recommended now because sometimes the area of the pie would be misleading. Therefore, if you want to use a pie chart, it is highly recommended to explicitly note the percentage or number of each part in the pie chart.Pie chart with outside annotationPie chart with percentage marked on and changable radius and font sizePie chart with some labels explorationMulti-layer pie chartfrom pie import Pie_plot

file_name = '1.xlsx'
a = Pie_plot(file_name)
a.Pie(file_name )Pyramid ChartThe pyramid can be used to show the distribution of groups sorted by number, or it can be used to show the step-by-step filtering of the population.Pyramid with actual value annotationPyramid with sort functionsfrom pyramid import pyramid

file_name = 'email_campaign_funnel.csv'
a = pyramid(file_name)
a.pyramid(file='email_campaign_funnel.csv')Box PlotA box plot or boxplot is a method for graphically depicting groups of numerical data through their quartiles. Displays the five-number summary of a set of data. The five-number summary is the minimum, first quartile, median, third quartile, and maximum.Multi-item box plotMulti-item box plot with annotationRadar ChartA radar chart is a graphical method of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point. The relative position and angle of the axes is typically uninformative.Radar chart with single groupsRadar chart with multiple groupsSpider chart with multiple groupsfrom radar import Radar

file_name = 'ronaldo.xlsx'
a = Radar(file_name)
a.radar_plot(file_name)Violin PlotA violin plot is a method of plotting numeric data. It is similar to a box plot, with the addition of a rotated kernel density plot on each side.Violin plotcategory violin plotfrom violin import Violin_plot

file_name = '4.xlsx'
a = Violin_plot(file_name)
a.Violin(file='4.xlsx')