![JAR search and dependency download from the Maven repository](/logo.png)
com.github.sh0nk.matplotlib4j.builder.LegendBuilderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matplotlib4j Show documentation
Show all versions of matplotlib4j Show documentation
Matplotlib for java: A simple graph plot library for java with powerful python matplotlib
The newest version!
package com.github.sh0nk.matplotlib4j.builder;
public class LegendBuilderImpl implements LegendBuilder {
private CompositeBuilder innerBuilder = new CompositeBuilder<>(this);
@Override
public LegendBuilder loc(int arg) {
return innerBuilder.addToKwargs("loc", arg);
}
@Override
public LegendBuilder loc(String arg) {
return innerBuilder.addToKwargs("loc", arg);
}
@Override
public LegendBuilder loc(double x, double y) {
return innerBuilder.addToKwargsWithoutQuoting("loc", String.format("(%d, %d)", x, y));
}
@Override
public String build() {
return innerBuilder.build();
}
@Override
public String getMethodName() {
return "legend";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy