labels

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

∥☆過路亽.° 提交于 2019-12-07 18:37:41
问题 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.

Add directlabels to geom_smooth rather than geom_line

好久不见. 提交于 2019-12-07 13:01:07
问题 I recognize that this question is a close duplicate of this one, but the solution there no longer works (using method="last.qp" ), so I'm asking it again. The basic issue is that I'd like to use directlabels (or equivalent) to label smoothed means for each group (from stat_smooth() ), rather than the actual data. The example below shows as close as I've gotten, but the labels aren't recognizing the grouping, or even the smoothed line. Instead, I'm getting the label at the last point. What I'd

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

百般思念 提交于 2019-12-07 07:28:45
问题 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,

Dynamically adapt number of self defined ticks

假如想象 提交于 2019-12-07 05:08:13
问题 Taking an example from SO, I'd like to adapt the axis ticks dependent on the current view. This is the default behavior, unless one sets a self defined number of ticks, The resulting behavior is demonstrated in the picture below. On the left side the default behavior, on the right side the figure with self defined ticks. When rotating the plot with the self defined Z ticks, their number won't be adapted to the currently available space (see right bottom figure). Is there a simple, general

ggplot donut chart percentage labels

五迷三道 提交于 2019-12-07 03:50:52
问题 I'm trying to add percentage labels to a donut chart but have been unsuccessful in plotting a clear representation of percentage values (rounded and not overlapping) ## my data library(ggplot2) col <- c("white", "black", "transparent", "grey", "blue", "yellow", "green", "red", "pink", "orange", "brown") freq <- c(101, 68, 34, 18, 14, 5, 5, 3, 2, 1, 1) ## create data frame colour.df <- data.frame(col, freq) colour.df ## calculate percentage colour.df$percentage = colour.df$freq / sum(colour.df

Justify individual axis labels in bold using ggplot2

一曲冷凌霜 提交于 2019-12-07 03:18:20
问题 Question adapted from this question and solution: Highlighting individual axis labels in bold using ggplot2 I would like to selectively justify the horizontal axes labels depending on meeting a criteria. So borrowing from the above question and answer I've set up an example: require(ggplot2) require(dplyr) set.seed(36) xx<-data.frame(YEAR=rep(c("X", "Y"), each=20), CLONE=rep(c("A", "B", "C", "D", "E"), each=4, 2), TREAT=rep(c("T1", "T2", "T3", "C"), 10), VALUE=sample(c(1:10), 40, replace=T))

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

霸气de小男生 提交于 2019-12-07 03:16:47
问题 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

mtext: smaller labels description when layout is used

China☆狼群 提交于 2019-12-07 02:51:26
Using mtext for the label description does something different than using xlab. How can I make the mtext labels be always the same size as it would be when using xlab (without defining always the cex argument). In the minimal example below cex=cex.lab=1 for both figures. However the size is different. layout(matrix(c(1,1,2,2), ncol=1)) op<-par(mar=c(4,4,2,1)) plot(1:10, xlab="", ylab="", main="This is my title") mtext("this is the x-axis", side=1, line=2.75, cex=1) mtext("this is the y-axis", side=2, line=2.5, cex=1) plot(1:10, xlab="this is smaller", ylab="this is smaller", main="This is my

How do you make just the x-lab label italics and NOT the y-lab label as well? (in R)

馋奶兔 提交于 2019-12-06 14:58:57
How do you make just the x-lab label italics and NOT the y-lab label as well? The only command I can find (font.lab=3) makes both the x-lab and y-lab labels italics. I am creating barplots in R that have specific names on the x and y axis. barplot(y, main="Main Title", names=c("a", "b", "c"), xlab="Text that I would like to be in italics", ylab="Text that I do NOT want to be in italics", font.lab=3) barplot(y, main="Main Title", names=c("a", "b", "c"), xlab=expression(italic("Text that I would like to be in italics")), ylab="Text that I do NOT want to be in italics") That is a plotmath call:

Factorize a numeric variable with Greek expression in labels in R

梦想与她 提交于 2019-12-06 13:44:31
问题 Suppose the following data frame, I want to factorized var, and label numbers to Greek letters, from 1 to alpha, 2 to beta, 3 to gamma. But the following code does not work. var<-c(1,1,2,2,3,3) df<-as.data.frame(var) df$var<-factor(df$var, levels=c(1,2,3), labels=c("1"=expression(alpha), "2"=expression(beta), "3"=expression(gamma))) Why the final data frame is not greek letters but just text expressions? Can anyone help me on this? Thanks a lot. 回答1: Does your locale support these characters?