figures

How to find byte sizes of R figures on pages?

蓝咒 提交于 2020-01-23 13:51:52
问题 I would like to monitor the basic quality of the figures produced in R on individual pages such as byte size of each page, ... I can now do only quality assurance of average pages, see the following chapter about it. I think there must be something builtin for the task than average measures. Code which produces 4 pages in Rplots.pdf where I would like to know the byte size of each page in an output here; any other statistics of the page outputs is also welcome; you can get the basic memory

Dividing a figure and handling Xticks (Matlab)

依然范特西╮ 提交于 2020-01-16 01:06:11
问题 I have some problems with figures in Matlab. I divided my bar plot into two figures since I have totally 171 bars. I took the first half of the data at first (figure 1) and then the second half (figure 2). But then I got a problem with Xticks. Now both start from zero, but I would want the second half (figure 2) to be from 86 to 171 (or with intervals of 10 so that they are from 80 to 180, for instance). I tried set(gca, ‘XLim’, [86 171] to the second figure, but what happened was that bars

Matplotlib differentiate between mean and median with colour or shape

混江龙づ霸主 提交于 2019-12-24 03:17:31
问题 I am using matplotlib version 1.4.3 and I wanted to make a Violinplot and I wanted to show the mean and the median, which is easy to do but I want to mark the mean and median so they can easily be distinguished between, by changing the colour and/or shape of one of them but I cannot see anything in the documentation that allows for that. Anyhelp would be greatly appreciated. violinplot(x, showmeans=True, showmedians=False, widths=1.0, showextrema=False) Example Violinplot with means and

How to force image to text when converting markdown to pdf using pandoc

百般思念 提交于 2019-12-22 06:51:04
问题 I made a GitHub wiki - a manual to a software package - and I want to transform it into a beautiful pdf manual. However, I have some trouble with figures - many of them are put in one of the following pages, much after the place in the text where it should be, what turns the document very difficult to read. To do so, I followed basically what was suggested here. Basically the idea is to: Clone the GitHub wiki; Convert the markdown files to a single pdf using pandoc: pandoc -s FirstSection.md

How to draw good looking arrows in Matlab?

扶醉桌前 提交于 2019-12-19 02:58:41
问题 I have been trying to draw arrows in Matlab in my figure but they all look terrible. Also, I want my arrowhead to be a solid triangle, not a V. I tried using the packages available on the Matlab File Exchange: arrow, arrows, arrows3, and probably at least one other one. I even tried manually creating an arrow in the Matlab figure editor, but when I adjust the line width, the arrow looks like this: I used the annotation command to create the arrow above: annotation(gcf,'arrow',[0.621875 0

ggplot2 multiline title, different indentations

那年仲夏 提交于 2019-12-18 13:35:27
问题 I am generating graphs for a publication and I'd like to be able to label the panels of a figure in ggplot itself (as opposed to exporting to publisher, etc) so that they just fit neatly together in the final document. I was going to try to do this by adding a letter ("A") into the title, but I'd like my titles centered and I'd like the letter in the upper lefthand corner. # base graph: ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species, shape = Species))+ geom_jitter(size =

MATLAB - best way to dynamically update a line handles' XData and YData?

北城余情 提交于 2019-12-18 04:55:20
问题 I am collecting data and plotting that data in real time. The data are produced by a motion capture system. I have one class DynamicDataset that is just a wrapper around a 2-column matrix (although it's more nuanced than that) with an event notifier for new data added; another class DynamicPlotter that listens for the data-added event and updates the plot dynamically. Appropriate code snippets: classdef DynamicDataset < handle properties newestData = []; data = [] end events DataAdded end

Rendering and image quality in MATLAB figures

為{幸葍}努か 提交于 2019-12-17 18:24:45
问题 I have a contour plot and I am using the current rendering: set(gcf, 'renderer', 'zbuffer'); but it is giving me this thick red line in the plot and I don't know how to get rid of it. I tried switching to: set(gcf, 'renderer', 'opengl'); but the quality is poor and I really need to have high quality images. Any suggestions? 回答1: In general, I let MATLAB choose which renderer is most appropriate, which means leaving the RendererMode property of the figure set to its default value of auto . A

Add extra whitespace to matlab legend (for use with psfrag)

荒凉一梦 提交于 2019-12-10 13:49:09
问题 How to pad white-space on a matlab legend to the right of the text? I am using a combination of psfrag (and adobe illustrator for a few other diagram modifications), and will replace the placeholder text in a figure with an equation. The problem is that it tightly bounds the box on the placeholder text, while I want to leave room for my equation Start with the simple figure; h_plot = plot([0 1], [0 1]); h_legend = legend('A',0); The spacing I really want would be something like this with h

How to Take Reference of Matlab's imagesc without Interruption?

南楼画角 提交于 2019-12-06 16:28:10
问题 Test code for the thread Why this imagesc-imshow with Colormap not Working in Matlab? which returns a structure of two fields cdata and colormap where cdata is an RGB representation of the figure hFig=figure; imagesc(time, potential, matrix); % choose any data %% Test Code Starts fr = getframe(hFig); rgbImage = fr.cdata; figure imshow(rgbImage) colormap parula %% Test Code ends saveas(hFig, '/home/masi/image.eps', 'eps'); Output without test code, saveas successful with test code, saveas