axis

Main axis are not shown when using grid

家住魔仙堡 提交于 2019-12-25 07:09:49
问题 I want to plot two graphs into the same figure with two different y-axis. In addition to it, I would like to add a grid and then save the plot as pdf. My problem is that - while the grid is drawn correctly - the main axis are not shown anymore. How can they be plotted as well? I am using matplotlib 1.5.1 and Python 2.7.11 . Here is the plot: And here is the code I am using: import matplotlib.pyplot as plt import numpy as np from matplotlib.backends.backend_pdf import PdfPages pp = PdfPages(

How to use the same scale on the y as the x but smaller because of the size difference?

北城余情 提交于 2019-12-25 06:19:11
问题 I have the following code snippet: var data = [{ "Part": 956, "Pos": "P2", "Side": "A", "Number": 1, "PIN/PAD": "A1", "xdim": 0.022, "ydim": 0.08, "centrex": 1.775685039, "centrey": 0.1945, "Rotated": "TRUE" }]; var svgContainer = d3.selectAll('#svgContainer'); var margin = { top: 20, right: 20, bottom: 30, left: 40 }, width = 1240 - margin.left - margin.right, height = 740 / 1.5 - margin.top - margin.bottom; var x = d3.scale.linear() .range([0, width]); var y = d3.scale.linear() .range(

OxyPlot:Cannot setting Axis values

。_饼干妹妹 提交于 2019-12-25 04:43:23
问题 I have been tying to set the min and max values of y axis by using properties like ActualMinimum and ActualMaximum ,but i doesn't work even I set the MinimumPadding and MaximumPadding to 0. I also tried the Zoom method of axis, it did not work. Sorry that I cannot upload a pic... Could someone please guide me in this regard ? Any help is very much appreciated. Thanks ! 回答1: Please use the properties AbsoluteMaximum and AbsoluteMinimum to limit the axes to a specific value: plotModel.Axes.Add

How to change the x-axis labels from a character to a different one?

时光总嘲笑我的痴心妄想 提交于 2019-12-25 04:21:23
问题 I've got a questions regarding the xaxis labels. In contrast to whats discussed in here: How to specify the actual x axis values to plot as x axis ticks in R I plotted a dataframe containing 10 columns. Each one is represented in a boxplot. For the x-axis my labels are Pipe1 till Pipe 10. Now I wanna change those labels to a specific ID for instance this way windows() par(mfrow= c(2,1),las=3) boxplot(output.valid.fast,outline=F, xlab ="Pipes",ylab="RMSE(-)") axis(1,at=c("Pipe1","Pipe2","Pipe3

PHP jpgraph parse x and y axis through a url?

半城伤御伤魂 提交于 2019-12-25 02:07:48
问题 I have a jpgraph script that parses a URL to build a graph for me like this: How do I send the X-Axis data at the same time, as I need to skip months and the current method does not allow for this? I'm guessing it would look something like this: /chart/jpgraph/graphmaker.php?a=(Jan','5)&b=(Feb','3)&c=(Jun','4) The jpgraph graph code in "graphmaker.php" is: <?php $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $parsedurl = parse_url($url, PHP_URL_QUERY); parse_str($parsedurl);

Two y axes for the same data - but different scale

六月ゝ 毕业季﹏ 提交于 2019-12-24 19:14:46
问题 I've created a graph presenting data in linear units but in logarithmic y-scale (code below). ggplot() + geom_point(data=VH_lin, aes(x=VH_lin[,1], y=VH_lin[,2], colour = "green"), size=0.6) + scale_y_log10(breaks = c(0,0.01, 0.10, 1.00, 10), limit=c(-0.01,10)) + scale_x_continuous(breaks=c(0, 2000, 4000, 6000, 8000, 10000, 12000)) + xlab("x") + ylab("y") + theme(panel.background = element_rect(fill = "white", colour = "grey50")) I would like to add second y scale in decibels - which are

Axis Web Service Keep Alive

佐手、 提交于 2019-12-24 18:53:01
问题 I have an axis web service running in Tomcat. Clients are making connections without sending a Connection: close header in HTTP 1.1 which means that the default is Keep-Alive. Unfortunately the client seems to be having a problem and when it gets an exception the client is not closing the connection. Since these clients are sending lots of traffic in batch jobs this quickly eats up all my connections. I want to force my web service to close each connection as soon as a particular Handler

python学习之删除DataFrame某一行/列内容

主宰稳场 提交于 2019-12-24 15:37:20
用法:DataFrame.drop(labels=None,axis=0, index=None, columns=None, inplace=False) 参数说明: labels 就是要删除的行列的名字,用列表给定 axis 默认为0,指删除行,因此删除columns时要指定axis=1; index 直接指定要删除的行 columns 直接指定要删除的列 inplace=False,默认该删除操作不改变原数据,而是返回一个执行删除操作后的新dataframe; inplace=True,则会直接在原数据上进行删除操作,删除后无法返回。 因此,删除行列有两种方式: 1)labels=None,axis=0 的组合 2)index或columns直接指定要删除的行或列 >>>df = pd.DataFrame(np.arange(12).reshape(3,4), columns=['A', 'B', 'C', 'D']) >>>df A B C D 0 0 1 2 3 1 4 5 6 7 2 8 9 10 11 #Drop columns,两种方法等价 >>>df.drop(['B', 'C'], axis=1) A D 0 0 3 1 4 7 2 8 11 >>>df.drop(columns=['B', 'C']) A D 0 0 3 1 4 7 2 8 11 #

How to read slider values dynamically into a function in JSXGraph?

时光毁灭记忆、已成空白 提交于 2019-12-24 15:22:49
问题 UPDATE from 22.5.2019 I did a simpler example of the "not working" code and also imitated the "working code" by defining K1 and KK locally when drawing the points, but doing this inside a method to have them defined only once and have the same definition for all points. Since I want the points to be drawn on a parabola, I now create points that have a fixed radius from the axis of revolution and a sign, so that I can create two points 180 degrees apart by just switching the sign from +1 to -1

JAX-WS client with Axis service

為{幸葍}努か 提交于 2019-12-24 14:54:19
问题 I'm relatively new to web services, but I need to integrate a call to an existing service in my application. Ideally, I'd like to use JAX-WS because I'm looking for the simplest, quickest-to-develop solution on my end, and MyEclipse is able to generate a JAX-WS client from a WSDL. Unfortunately, the WSDL I've inherited was built from what appears to be Axis using RPC. Will this still work? When trying to generate the code, I get these errors, and the web searches I've found seem to say that