axis

org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it

心不动则不痛 提交于 2019-11-28 06:12:15
I'm getting an error when I try to generate an element that should look like <hold/> Using the java client code generated by Axis2. java snippet HoldPayment hold = new HoldPayment() cr.setHold(hold); but when I fire it off I get an error of WRONG_DOCUMENT_ERR. If I don't include this element in the message being fired off it works fine. anyone got any idea how to fix it? AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.

numpy中求向量、矩阵的范数

吃可爱长大的小学妹 提交于 2019-11-28 05:54:43
np.linalg.norm()    # linalg = linear(线性) + algebra(代数), norm表示范数 x_norm = np.linalg.norm(x, ord=None, axis=None, keepdims=False) ①x: 表示矩阵(也可以是一维) ②ord:范数类型 向量的范数: 矩阵的范数: ord=1:列和的最大值 ord=2:|λE-ATA|=0,求特征值,然后求最大特征值得算术平方根 ord=∞:行和的最大值 ③axis:处理类型 axis=1表示按行向量处理,求多个行向量的范数 axis=0表示按列向量处理,求多个列向量的范数 axis=None表示矩阵范数。 ④keepdims:是否保持矩阵的二维特性 ,避免出现shape = (5, )这样的形状 True表示保持矩阵的二维特性,False相反 来源: https://www.cnblogs.com/shuaishuaidefeizhu/p/11395762.html

AChartEngine graph using two y axis

耗尽温柔 提交于 2019-11-28 05:23:02
问题 I am currently trying to create a graph using AChartEngine containing two y-axis (one to the left, one to the right). Yet, I cannot seem to figure out how I can actually add the second y-Axis. An XYMultipleSeriesRenderer only has got one setYTitle() method. Has someone ever achieved this and can give me a hint? Thanks, Matthias 回答1: You can do that, indeed. Please see an example for this here. The result looks like . 来源: https://stackoverflow.com/questions/8786435/achartengine-graph-using-two

In-process SOAP service server for Java

北城余情 提交于 2019-11-28 04:35:44
OK, I am developing a program which will be deployed to lots of machines (Windows, Linux, AIX, z/Linux, openVMS, etc.). I want that application to contain a SOAP web service, but I don't want to bundle tomcat or run a separate service for the services (I want them in the same process as the rest of the application). Basically what I'm looking for is something where I can define a class (say WebServices ). I'm OK with writing WSDL or any other kind of service description as well. The I want something like this: SOAPServer server = makeMeASoapServer(); //do config on the server server.add(new

Change distance between x-axis ticks in ggplot2

柔情痞子 提交于 2019-11-28 04:10:10
问题 Right now I am producing a line graph with three observations. Hence, there are three x-axis ticks. I want to manually reduce the distance between the x-axis ticks and basically force the observations to be closer to each other. In other words, I want to reduce the distance between the x-axis ticks. My data: structure(list(Period = c("January 1997 - August 2003", "September 2003 - Jun 2005", "Jul 2005 - Dec 2009", "January 1997 - August 2003", "September 2003 - Jun 2005", "Jul 2005 - Dec 2009

How to limit d3.svg.axis to integer labels?

爷,独闯天下 提交于 2019-11-28 02:24:56
问题 Is there any possibility to limit the number of d3.svg.axis integer labels displayed on the graph? Take for instance this graph. There are only 5 sizes here: [0, 1, 2, 3, 4] . However, the ticks are also displayed for .5, 1.5, 2.5 and 3.5 . 回答1: You should be able to use d3.format instead of writing your own format function for this. d3.svg.axis() .tickFormat(d3.format("d")); You can also use tickFormat on your scale which the axis will automatically use by default. 回答2: I've realised that it

Android调用Java WebSevice篇之一

旧街凉风 提交于 2019-11-28 02:13:41
一、服务端WebService   1.服务端环境配置 MyEclipse 10.0、Tomcat6.0、JDK6.0。   2.下载axis相关jar包。        3.创建webservice。 打开MyEclipse,新建web工程。 在WEB-INF目录先添加wsdd文件(server-config.wsdd) <? xml version="1.0" encoding="UTF-8" ?> < deployment xmlns ="http://xml.apache.org/axis/wsdd/" xmlns:java ="http://xml.apache.org/axis/wsdd/providers/java" > < globalConfiguration > < parameter name ="sendMultiRefs" value ="true" /> < parameter name ="disablePrettyXML" value ="true" /> < parameter name ="dotNetSoapEncFix" value ="true" /> < parameter name ="enableNamespacePrefixOptimization" value ="false" /> < parameter name =

Add secondary X axis labels to ggplot with one X axis

筅森魡賤 提交于 2019-11-28 01:31:39
**Edit, there are two great solutions here, one is marked as the answer, but @hrbrmstr provides a great solution combining two ggplots which works well for this simple plot.* Here's the code breaks.major <- c(0,15,37.5,52.5,67.5,82.5,95,100) #defines the midpoints of the categories (label locations) breaks.minor <- c(30,45,60,75,90) #defines the edges of the categories (second label set I need) labels.minor <- c("","Extremely \nDissatisfied","Dissatisfied","Uncertain","Satisfied","Very \nSatisfied","Extremely \nSatisfied","") lims =c(0,100) g <- ggplot(mpg, aes(class))+ geom_bar()+ coord_flip(

pandas(七)数据规整化:清理、转换、合并、重塑之合并数据集

半世苍凉 提交于 2019-11-28 00:20:05
pandas对象中的数据可以通过一些内置的方式进行合并: pandas.merge 可根据一个或多个键将不同的DataFrame中的行连接起来。 pandas.concat可以沿着一条轴将多个对象堆叠到一起 实例的方法conbine_first 可以将重复的数据编接到一起,用一个对象中的值填充另一个对象的缺失值。 数据库风格的DataFrame合并 In [51]: df1 = DataFrame({'key':['b','b','a','c','a','a','b'],'data1':range(7)}) In [53]: df2 = DataFrame({'key':['a','b','d'],'data2':range(3)}) In [54]: df1 Out[54]: data1 key 0 0 b 1 1 b 2 2 a 3 3 c 4 4 a 5 5 a 6 6 b In [55]: df2 Out[55]: data2 key 0 0 a 1 1 b 2 2 d In [56]: pd.merge(df1,df2) Out[56]: data1 key data2 0 0 b 1 1 1 b 1 2 6 b 1 3 2 a 0 4 4 a 0 5 5 a 0 默认不显式指明用哪个键进行连接的时候,merge会将重叠列的列名当做键。不过,最好显式的指明: In [57

Pandas 合并数据集

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 00:19:34
在数据挖掘过程中,经常会有不同表格的数据需要进行合并操作。今天介绍通过python下的pandas库下的merge方法和concat方法来实现数据集的合并。 1.merge merge 函数通过一个或多个键来将数据集的行连接起来。该函数的主要 应用场景是针对同一个主键存在两张包含不同特征的表,通过该主键的连接,将两张表进行合并。合并之后,两张表的行数没有增加,列数是两张表的列数之和减一。 函数的具体参数为: merge(left,right,how='inner',on=None,left_on=None,right_on=None, left_index=False,right_index=False,sort=False,suffixes=('_x','_y'),copy=True) 1 2 on=None 指定连接的列名,若两列希望连接的列名不一样,可以通过left_on和right_on 来具体指定 how=’inner’,参数指的是左右两个表主键那一列中存在不重合的行时,取结果的方式:inner表示交集,outer 表示并集,left 和right 表示取某一边。 举例如下 import pandas as pd df1 = pd.DataFrame([[1,2,3],[5,6,7],[3,9,0],[8,0,3]],columns=['x1','x2','x3'])