width

Change width of bars in barchart (R)

蓝咒 提交于 2019-12-22 04:39:56
问题 I am wondering how to change the width of the bars in the barchart() function. Here is the code: rater1 <- c(0.75, 0.66, 0.73, 0.63) barplot(rater1, ylim=c(0:1),axes = TRUE, names.arg = c("A", "B", "C", "D"), axisnames=TRUE, col="grey70") Is it also possible to place value labels above the bars? Thanks. 回答1: From ?barplot : space: the amount of space (as a fraction of the average bar width) left before each bar. May be given as a single number or one number per bar. [...] So, for example,

Change height/width of object SVG using JavaScript

走远了吗. 提交于 2019-12-22 02:01:29
问题 I want change height or width when a click in a button. I try this but not work: function modify(){ document.getElementById('cercle1').style.height = "10px"; document.getElementById('cercle1').style.width = "10px"; } 回答1: In SVG width and height of <rect> elements are attributes and not CSS properties so you'd need to write document.getElementById('cercle1').setAttribute("height", "10px"); similarly for the width. 来源: https://stackoverflow.com/questions/26392165/change-height-width-of-object

SSRS tablix column CanGrow property for width?

吃可爱长大的小学妹 提交于 2019-12-22 01:24:14
问题 I'm working on a tablix in SSRS 2008 and want my columns to autosize (width only) to their contents. CanGrow only affects height. Is there a property I'm missing or any way to otherwise rig the columns to do this? 回答1: I've been trying to do that myself (client side), without success. There is no property that would autosize the column width. Check out this workaround: http://blog.sharepointalist.com/2009/05/ssrs-column-width-auto-size.html (I haven't tested it) The best workaround I've found

Cropped Image size in Android is constant

牧云@^-^@ 提交于 2019-12-22 00:58:12
问题 I am cropping an image in circular fashion and using below code while creating the intent intent.setData(mImageCaptureUri); intent.putExtra("outputX", 200); intent.putExtra("outputY", 200); intent.putExtra("aspectX", 1); intent.putExtra("aspectY", 1); Since I am using outputX = 200, I am getting width and height of every cropped image as 200 and 200 , no matter how much I zoom-in or zoom out. Below shown both images have different zoom ratio but still return same height and width. width =

JTabbedPane tab component resize to fit

人走茶凉 提交于 2019-12-21 22:04:08
问题 I want to make my tab labels share the JTabbedPane width. If there's one tab, fit whole width, if two tabs, share width, if three, 1/3 for each and so on... i don't even know if it's possible to do it without putting a component there and resizing it, maybe JTabbedPane has a way of resizing it's tab label via method and i don't know... Anyone got any idea how to make it by the easiest way possible? 回答1: As @trashgod already noted, the tab layout is handled by the LAF-specific

Setting a table to display: block

时光怂恿深爱的人放手 提交于 2019-12-21 21:43:04
问题 I like to get my table behave like a block element. I cannot set it to width:100% because it does have some padding, this is going to result 100% + the paddings PX. Check out: http://jsfiddle.net/LScqQ Finally the table does what I want, can you see the box-shadow? But the table children don't like it that way^^ I guess the TH inside the THEAD are the problem. They do not get the aspected ratio of 66% to 33%. Help wanted... 回答1: Your table should be display: table . If you're worried about

Getting SVG container size in snapSVG?

房东的猫 提交于 2019-12-21 21:28:33
问题 What is the correct way to get the size of the 'paper' object with SnapSVG, as soon as it has been created? My HTML looks something as follows: <div id="myContainer" style="width: 900px; height: 100px" /> And then the Javascript code: function initViewer(elementId) { var element, elementRef, snap; elementRef = '#' + elementId; element = $(elementRef); element.append('<svg style="width: ' + element.width() + 'px; height: ' + element.height() + 'px; border: solid 1px black;"/>'); snap = Snap

Pixel and percentage width divs side-by-side

跟風遠走 提交于 2019-12-21 18:51:11
问题 I've found a lot of similar questions, and tried out several solutions (including some of the so-called "holy grail" CSS layouts), but they don't quite do what I need. I have a containing div (a CSS containing block) with id right . Inside it on the left side, I want a fixed-width div (a splitter bar, but it doesn't matter what it's being used for; id splitpane ); on the right, filling the rest of the space, another div (id right-box below). I've tried making the two inner divs display:

Make all <li> same width as the widest

旧城冷巷雨未停 提交于 2019-12-21 12:34:57
问题 I've got this menu wich is setup inline and has dropdowns. The inner ul has a background. Each dropdown li has a :hover that changes the background of the li : <div id="navMain"> <ul> <li><a href="#nogo">Forside</a> <ul> <li><a href="#nogo">1111111111111</a></li> <li><a href="#nogo">Link 1-2</a></li> <!-- etc. --> </ul> </li> <li><a href="#nogo">Om Os</a> <ul> <li><a href="#nogo">Link 2-1</a></li> <li><a href="#nogo">Link 2-2</a></li> <!-- etc. --> </ul> </li> <li><a href="#nogo">Link 3</a>

How to Set Grid Column MaxWidth depending on Window or Screen Size in XAML

走远了吗. 提交于 2019-12-21 10:56:05
问题 I have a 3 column grid in a window with a GridSplitter on the first column. I want to set the MaxWidth of the first column to a third of the parent Window or Page Width (or ActualWidth ) and I would prefer to do this in XAML if possible. This is some sample XAML to play with in XamlPad (or similar) which shows what I'm doing. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx