legend

100 labels in separate div with highlighted series in a box

為{幸葍}努か 提交于 2020-01-07 03:23:13
问题 I am trying to show labels div in a separate div with the highlighted series marked with a box , I am doing so because I have 100 labels and showing them above the graph will cover the graph. I want to do the same thing happening here , but with the labels in a separate div since 100 labels and each label name is long which will be too much for this area and cover the graph it self. I also found this one, but it put the labels in a separate div and no box around the highlighted point . This

ggplot legend not showing up in lift chart

大城市里の小女人 提交于 2020-01-06 08:43:08
问题 I'm trying to get a legend to show up in a left chart I've developed. It's not showing up. I've checked ggplot legend not working with scale_colour_manual as well as How to add a legend in ggplot (not showing up) to no avail. Here is some sample data: #x axis values deciles <- c(1:10) #model_1 decile_act_pp <- c(393.6773, 243.0795, 250.2033, 220.0076, 180.7292, 187.3803,208.8504,162.9708,140.9405,107.7656) #model_2 model2_pp_norm <- c(537.9617, 306.0807, 244.6228, 207.8051, 181.8801, 161.3744

i want to have some cross browser consistency on my fieldsets, do you know how can i do it?

余生颓废 提交于 2020-01-06 08:22:30
问题 i have this problem with fieldsets... have a look at http://i.imgur.com/IRrXB.png is it possible to achieve what i want with css??? believe me, i tried! as you can see on the img, i just want the look of the legend to be consistent across browsers, i want it to use the width of the fieldset no more (like chrome and ie) no less (like firefox), dont worry about the rounded corners and other issues, thats taken care of. heres the the core i'm using. CSS <style type="text/css"> fieldset {margin:

Separate seaborn legend into two distinct boxes

孤街浪徒 提交于 2020-01-06 07:06:56
问题 I'm using Seaborn to generate many types of graphs, but will use just a simple example here for illustration purposes based on an included dataset: import seaborn tips = seaborn.load_dataset("tips") axes = seaborn.scatterplot(x="day", y="tip", size="sex", hue="time", data=tips) In this result, the single legend box contains two titles "time" and "sex", each with sub-elements. How could I easily separate the legend into two boxes, each with a single title? I.e. one for legend box indicating

Separate seaborn legend into two distinct boxes

北城余情 提交于 2020-01-06 07:06:09
问题 I'm using Seaborn to generate many types of graphs, but will use just a simple example here for illustration purposes based on an included dataset: import seaborn tips = seaborn.load_dataset("tips") axes = seaborn.scatterplot(x="day", y="tip", size="sex", hue="time", data=tips) In this result, the single legend box contains two titles "time" and "sex", each with sub-elements. How could I easily separate the legend into two boxes, each with a single title? I.e. one for legend box indicating

Python: seaborn pointplot and boxplot in one plot but shifted on the x-axis

放肆的年华 提交于 2020-01-05 11:14:14
问题 I want to plot both a boxplot and the mean in one figure. So far my plot looks like this using these lines of code: sns.swarmplot(x="stimulus", y="data", data=spi_num.astype(np.float), edgecolor="black", linewidth=.9) sns.boxplot(x="stimulus", y="data", data=spi_num.astype(np.float), saturation=1) sns.pointplot(x="stimulus", y="data", data=spi_num.astype(np.float), linestyles='', scale=1, color='k', errwidth=1.5, capsize=0.2, markers='x') sns.pointplot(x="stimulus", y="data", data=spi_num

Python: seaborn pointplot and boxplot in one plot but shifted on the x-axis

有些话、适合烂在心里 提交于 2020-01-05 11:12:14
问题 I want to plot both a boxplot and the mean in one figure. So far my plot looks like this using these lines of code: sns.swarmplot(x="stimulus", y="data", data=spi_num.astype(np.float), edgecolor="black", linewidth=.9) sns.boxplot(x="stimulus", y="data", data=spi_num.astype(np.float), saturation=1) sns.pointplot(x="stimulus", y="data", data=spi_num.astype(np.float), linestyles='', scale=1, color='k', errwidth=1.5, capsize=0.2, markers='x') sns.pointplot(x="stimulus", y="data", data=spi_num

Python: seaborn pointplot and boxplot in one plot but shifted on the x-axis

梦想与她 提交于 2020-01-05 11:12:08
问题 I want to plot both a boxplot and the mean in one figure. So far my plot looks like this using these lines of code: sns.swarmplot(x="stimulus", y="data", data=spi_num.astype(np.float), edgecolor="black", linewidth=.9) sns.boxplot(x="stimulus", y="data", data=spi_num.astype(np.float), saturation=1) sns.pointplot(x="stimulus", y="data", data=spi_num.astype(np.float), linestyles='', scale=1, color='k', errwidth=1.5, capsize=0.2, markers='x') sns.pointplot(x="stimulus", y="data", data=spi_num

Wrong legends when plotting histogram with `hold on`

本小妞迷上赌 提交于 2020-01-05 09:05:31
问题 I am plotting histograms on a subplot, where each plot has two histograms as shown in one part of the subplot below: Question: I would want the hist with variable named result_uT_per_window to have red legend, and hist with variable named uT_top_of_global_window to have blue legend. I thought what I have in code is supposed to do that, but it doesn't. This is the code: hold on hist(nonzeros(result_uT_per_window(:,window_no))) hist(uT_top_of_global_window) h = findobj(gca, 'Type','patch'); set

MATLAB: legend for plotyy with multiple data sets

落爺英雄遲暮 提交于 2020-01-05 09:03:15
问题 I'd like to automatically create graphs of Hardness H and Young's modulus E of samples as function of load L of indenter. My goal is to create legend containing black circle marker labeled Sample one , black square labeled Sample two etc. Right now I get legend of default(blue) colour. Preceeding line specifications are discussed there. Here's my actual MWE code: [m,n]=size(data1); %data1 - m x 3 matrix with data for first sample. [ax,h1,h2]=plotyy([data1(1:m,1)],[data1(1:m,2)],[data1(1:m,1)]