legend

How to create multiline legend in teechart?

余生长醉 提交于 2019-12-25 07:30:24
问题 Does anybody know if there a way to write multiline legend of a chart? I've tried to add TeeLineSeparator or #13, and it doesn't work? Thanks very much 回答1: I'm afraid not in the current legend. The alternatives are to use the CustomLegend tool TeeChart Pro provides or to directly draw your shapes and strings in the OnAfterDraw event using custom drawing techniques. Ie: uses Series, TeCanvas; procedure TForm1.FormCreate(Sender: TObject); var i: Integer; begin Chart1.Legend.Visible:=false;

Highcharts Donutchart: Avoid showing duplicate legend with nested charts

一曲冷凌霜 提交于 2019-12-25 04:52:13
问题 I am trying to represent nested data using Highcharts Donut Chart. The charts are generated quite well, however I am having some problems with displaying the legend. Data to be represented: Category A -[High : 20%, | Medium : 50% | Low : 30%] Category B -[High : 10% | Medium : 50% | Low : 40%] JS Fiddle : http://jsfiddle.net/a2sy9bgj/ $(function () { // Build the data arrays var categoryData = [{ name: 'Category A', y : 60, color: 'white', borderColor : 'black' }, { name: 'Category B', y : 40

Highcharts Donutchart: Avoid showing duplicate legend with nested charts

别来无恙 提交于 2019-12-25 04:51:04
问题 I am trying to represent nested data using Highcharts Donut Chart. The charts are generated quite well, however I am having some problems with displaying the legend. Data to be represented: Category A -[High : 20%, | Medium : 50% | Low : 30%] Category B -[High : 10% | Medium : 50% | Low : 40%] JS Fiddle : http://jsfiddle.net/a2sy9bgj/ $(function () { // Build the data arrays var categoryData = [{ name: 'Category A', y : 60, color: 'white', borderColor : 'black' }, { name: 'Category B', y : 40

Shared legend 3x3 ggplots

被刻印的时光 ゝ 提交于 2019-12-25 03:39:50
问题 I need a 3x3 ggplot with a shared legend. The Controlling the plot layout when sharing legends between several ggplot2 graphs question and answers solve this for 1x4 plot (not 3x3 which is what I need). I have tried to modify the function for my needs, after many attempts, I must admit that baptistes function is much beyond my R-knowledge. Here is a MWE, based on the same example in the refered question (hope it is ok to borrow it). library(ggplot2) library(grid) library(gridExtra) dsamp <-

Code for a multicolumn legend in Matlab

旧时模样 提交于 2019-12-25 01:49:38
问题 I have designed an application called CLegend, which allows to build a multicolumn legend, whose code is function CLegend(hax,numcol,Ley) %# Inputs % hax : handle of the axes object to which belongs the legend % numcol: number of columns for the legend % Ley: text strings (labels) for the legend set(hax,'Units','normalized','Position',[0.1 0.1 0.8 0.8]); set(hax,'Units','characters'); posAx = get(hax,'Position'); insAx = get(hax,'TightInset'); [legend_h,object_h] = legend(hax,Ley,'Units',

Hide highcharts series name on the chart

对着背影说爱祢 提交于 2019-12-24 23:59:48
问题 I am messing around with highcharts for a company project and I have the name/number from calculations (totals) being displayed int he legend. The problem is they also display on the graph. I can't for the life of me figure out how to turn them off on the chart, yet leave them on in the legend. I've read through the API and maybe I missed it but could use some help if you all don't mind. Code: Highcharts.chart('high_charts_admin', { title: { text: 'Adset ID: '+results[1].data[0].adset_id, },

Changing the order of entries for a geopandas choropleth map legend

孤者浪人 提交于 2019-12-24 19:27:17
问题 I am plotting a certain categorical value over the map of a city. The line of code I use to plot is the following: fig = plt.figure(figsize=(12, 12)) ax = plt.gca() urban_data.plot(column="category", cmap="viridis", ax=ax, categorical=True, / k=4, legend=True, linewidth=0.5, / legend_kwds={'fontsize':'19', 'loc':'lower left'}) where urban data is a geopandas dataframe, and I am using matplotlib as plotting library. The argument legend_kwds allows me to control minor things on the legend, like

R gplots heatmap.2 - key is unstable using breaks parameter (warning: unsorted 'breaks' will be sorted before use)

岁酱吖の 提交于 2019-12-24 17:53:15
问题 I'm visualizing a data set with the heatmap.2 function from the gplots package in R. Basically I'm performing a hierarchical clustering analysis on the original data, while forcing the heatmap to display a limited version of the data (between -3 and +3) to limit the effect of outliers on the appearance of the heatmap, while still retaining the original clustering. When I use the full data set ( fullmousedatamat ), it works just fine. However, when I use a partial data set (

Secondary legend on chloropleth for points and polygons, ggplot

允我心安 提交于 2019-12-24 17:13:09
问题 I have a map with polygons and points on it - showing countries of interest in the world. I want legends for both items (points and polygons), but can't add them. The polygon is plotted first (and so has a legend), while the points do not appear on the legend. To try and address this i add show.legend = T However the legend then adds the dots on top of the polygon colors as below: What i want is another legend item with a yellow dot, where i can set the label as i want. At the moment i am

Using a proxy artist inside a legend, matplotlib, Python

故事扮演 提交于 2019-12-24 16:18:53
问题 Here is a snippet of my code: fig2 = plt.figure(figsize=(8,6)) ax1 = fig2.add_subplot(111) ax1.scatter((logngal),(logm200),c='r',label='$0.0<z<1.0$') ax1.plot((logngal),(curve_y_1),'y',linewidth=2,label='$slope=%s \pm %s$'%(slope1,slope1_err)) ax1.fill_between(x_pred, lower, upper, color='#888888', alpha=0.5) p1 = mpatches.Rectangle((0, 0), 1, 1, fc="#888888",alpha=0.5) ax1.legend([p1],['$1\sigma\/confidence\/limts$']) fig2.show() When I perform the above, I only see $1\sigma\/confidence\