labels

In Stata, how do I add variable labels from a separate csv file?

荒凉一梦 提交于 2019-12-06 11:19:19
I have a set of csv files that are very simple to load into Stata using the -insheet- command. But they have very uninformative variable names. For each of these files, I also have a file of metadata consisting of two columns: the original (uninformative) variable names, and a description of what the variables actually mean. I'd like to use these metadata files to create variable labels, preferably without going through and typing up all the separate label commands or turning the metadata file into a dictionary for each file. It seems like there must be a quick way of loading the metadata file

c3 js: How can I group by Year on the X-axis labels?

北慕城南 提交于 2019-12-06 09:22:41
Using c3 js library for charts (c3js.org). I'am trying to achieve something similar to this chart (i.e., add year label 2011, 2012, 2013 on a seperate line after Q1, Q2, Q3, Q4) var chart = c3.generate({ data: { x: 'x', columns: [ ['x', '2013-01-01', '2013-01-02', '2013-01-03', '2014-01-04', '2014-01-05', '2014-01-06'], ['data1', 30, 200, 100, 400, 150, 250], ['data2', 130, 340, 200, 500, 250, 350] ] }, axis: { x: { type: 'timeseries', tick: { format: '%Y-%m-%d' } } } }); show's the x axis with year in each label in the format year-month-day. I want to show just the month and date on first

is it possible to set the position of a label relative to the key in gnuplot?

浪尽此生 提交于 2019-12-06 05:38:24
问题 The nature of my plot is such that absolute labels don't really work; I can't restrict the range in y, so wondered if there was a way to either include my label text inside the key or have it placed relative to the key (i.e. below) set term png enhanced size 1024,768 set title "{/=15 1D My title}\n - by me" set xlabel "x" set ylabel "y" set label "V_0 = 10\n E = 1" #this is the bit I want to reposition set out 'trial.png' set xrange [-2.5:2.5] set arrow from -2,-2000 to -2,2000 nohead size

How to show Miller indexes in MATLAB?

做~自己de王妃 提交于 2019-12-06 03:06:54
问题 I'm using MATLAB to plot XRD analyses where Miller indexes are used to identify crystallographic plane directions. These indexes contain 3 or 4 numbers and negative value is shown with bar over this number. In LaTeX it can be written by \([1\bar{1}1]\) or \([1\overline{1}1]\) command. For labeling spectral lines of XRD standards I'm using this command: Note that negative values are not considered. std_text_hkl(j)=text(theta{i}(j)-r,0.1,['[' hkl{j} ']'],... % position and label of j-th line of

Add Different Labels to Secondary X-Axis of Levelplot in Lattice in R

喜欢而已 提交于 2019-12-06 01:05:22
I've managed to label the secondary X-axis in a levelplot using scale=list((alternating=3)) as solved by @KoenV here: How to Add Labels to Top X-Axis of Levelplot in Lattice Package Now this duplicates the primary X-axis labels onto the secondary X-axis as can be seen by running the code below. However, I need to add different labels to the secondary X-axis. Does anyone know how to do this? In the example below I would like to have 'hor' as the primary X-axis labels and 'hor2' as the secondary X-axis labels. library(lattice) #Build the horizontal and vertical axis information hor <- c("214",

How can I use TCPDF to make 2x6 sheets of labels that include 2D barcodes WITHOUT using columns OR 3rd-party classes?

送分小仙女□ 提交于 2019-12-05 20:35:52
For three weeks (I guess I'm that slows!) I've tried to use TCPDF's own examples as well as some suggestions found on this site to figure out how to do this using database records. Mr. Asuni has responded to some requests for help when others ask how to use 3rd party patches (classes) to get things going, only that it CAN be done in TCPDF without such classes. For whatever reason (perhaps my own misunderstanding) I have not been able to use TCPDF to print labels using his columns approach. Neither have I been willing to ditch TCPDF in favor of other possible solutions (reasons I won't go into)

Stacked ggplot percent barchart in shiny

橙三吉。 提交于 2019-12-05 16:33:10
My aim is to create stacked bar chart with percent labels in ggplot. After some research and reading some material I've managed how to plot the chart I want. There a lot of material. How do I label a stacked bar chart in ggplot2 without creating a summary data frame? Create stacked barplot where each stack is scaled to sum to 100% R stacked percentage bar plot with percentage of binary factor and labels (with ggplot) However, I have 2 problems: 1) I can't find a proper place to put labels. You can see that labes are not centered and are in wrong sections. (plot generated not using shiny) How

Using matplotlib to label points on a scatter plot on mouse over with some label other than x,y coordinates

老子叫甜甜 提交于 2019-12-05 14:31:00
I am trying to use the DataCursor approach ( https://stackoverflow.com/a/4674445/1301710 ) to label points using matplotlib. I have several thousand points and would like to see their label on mouseover. However, there are two differences: one, I'm making a scatter plot and two, I want to label names for each point and not just the x,y coordinates. here is my code import os import matplotlib.pyplot as plt class DataCursor(object): text_template = 'x: %0.2f\ny: %0.2f' x, y = 0.0, 0.0 xoffset, yoffset = -20, 20 text_template = 'x: %0.2f\ny: %0.2f' def __init__(self, ax, labels,x,y): self.ax = ax

ClearCase: Find files having exactly one specific label and not more

拈花ヽ惹草 提交于 2019-12-05 09:30:44
I'd like to find files in ClearCase that are labeled with a specific label but that do not have any other labels set . For example, if I have files labeled like this: file1 LBL_A, LBL_B file2 LBL_A I'd like to have a query that gives me just file2 and not file1. Is there a way to do this with cleartool find? If this is not possible to do with a single query, I'd also be happy for any ideas how to do this in several steps (I'll be calling cleartool from a perl script, so it will be easy to save lists of files temporarily and run further commands on them). Thanks a lot in advance! Jan Assuming

AngularJS - get label text for field

為{幸葍}努か 提交于 2019-12-05 08:57:44
Question I was wondering what the AngularJS "best practice" way of getting a label for a field is. With jQuery you just query using a "label for" query then extract the text. While it's possible to do it this way with AngularJS, something just doesn't feel right about it. Assume you have something like this in your HTML: <form name="MyForm" ng-controller="Ctrl"> <label for="MyField">My spoon is too big:</label> <input type="text" size="40" id="MyField" ng-model="myField" /> <br /><br /> You entered {{ myField }} for {{ myField.label }} </form> The controller internal is pretty simple: $scope