Plotsquared Api
Posted : admin On 7/6/2022Simpler alternative to the `/plot setup` command./plot area create <world>:<areaid> <modifiers>/plot area create pos1/plot area create pos2/plot area confirm. An expanded API. Paper extends and improves the Bukkit and Spigot APIs so that you and your developers have more features and functionality at your fingertips. All the meanwhile, Paper retains compatibility with plugins written for Spigot and Bukkit. ArchiveLearn about our API.
- Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
- PlotSquared Flag API A plot flag is any property that can be assigned to a plot, that will alter its functionality in some way. Most of these are user assignable in-game, or via configuration files (for plot areas).
- PlotSquared is a land management plugin and world manager which also comes with several highly configurable world generators. (See images below)
- You can create plots of land in existing worlds using plot clusters, or you can have a full world of plots.
- See here for PlotMe conversion.
- See here for Plotz conversion.
- Survival servers: We have a 'town' template included with the plugin, or create your own using /plot setup
- Skyblock: 'skyblock' template included with the plugin
- Are you a programmer? Use it to manage minigames. Clear arenas async, and manage plots using the plot cluster API.
- It's also being used on forge servers such as pixelmon.
- Async plot clearing is more than 800 times faster than PlotMe, among many other performance improvements
- Works with hundreds of thousands of plots, or monster 2K x 2K custom terrain plots, with many functions built specifically for mass plot management
- Plot condensation and world trimming can drastically reduce the size of the world on disk
- Powerful plot analysis and auto clearing mean you can further remove low quality plots
- Legacy support for Bukkit 1.7 - 1.12, Sponge, and Nukkit (MCPE)
- Updated support for Bukkit 1.13
- Support for offline mode servers
- Community translations for several languages (may be outdated)
- In built plot downloading + cross server saving and loading + some optional web interfaces
- Plot swapping / copying and cross world plot moving
- Plot merging, your own plots or between friends
- Extensive flag system so you can decide what should be protected on a per world, or per plot basis
- Plot entry notifications / per plot time / weather / music etc with the flag system
- Add custom roads to existing maps to make them look nicer
- Recolor all text easily and configure additional messages however you want
- Dynamic world border to prevent excessive exploring
- Mob protection and per plot mob limiting
- Interactive commands such as plot listing
- Plot rating, ranking, complexity analysis, and auto clearing calibration
- Use javascript to add new commands or script simple things like auto merging all plots
- Plot schematic saving, loading and pasting
- Per player settings such as plot chat and entry notifications
- World creation either with multiverse, /plot setup, or manual yml configuration
- Command recommendation if you mistype something
- Plot commenting and inboxes
- World auto trimming which reduces the CPU and disk usage when people explore
- Pistons and Sand/TNT cannons are properly restricted
- Per plot redstone settings + plot redstone disablers
- Optional fast async worldediting
- WorldEdit (included)/VoxelSniper (with addon) restricted to plots
- Chunk processing to safely unload dangerous chunks (also processes WorldEdit commands)
- Component setting (floor, wall, border)
- Section off areas (e.g. an area for donors) with plot clusters, or add plot clusters to vanilla worlds
- Use holograms instead of signs if you want (HoloPlots addon)
- Four tiers of plot allowance: Owner, Helper, Trusted, Denied
- Plot naming (for teleportation)
- Configurable command confirmation (e.g. for /plot clear)
- Manage islands, skyblock, vanilla worlds, or certain sections of worlds as plots
- A lot of generators, and settings to choose from
- Installation (includes conversion)
- Usage (info about various parts of the plugin)
- Permissions (Basic permission setup)
- Commands (List and description of all commands)
- Plot2Dynmap(Dynmap addon)
- VoxelSniperRegions(Restrict VoxelSniper)
- PlotRankup(Plot approval system)
- PlotUpload (Web interface that supports multiple servers)
- PlotWebPHP(Web interface that supports plot searching)
- HoloPlots(Plot holograms)
- RedstoneClockPreventer2(prevent clocks)
- CommandBlock (Restrict command blocks to plots)
- FastAsyncWorldEdit (Async WorldEdit in plots)
- PlotHider (Make plots invisible)
- HybridGenerator (This is bundled with PlotSquared.jar and supports plot + road schematics as well as Augmented generation)
- BiomeGenerator(Natural biomes within plots not a world generator)
- PlotSquaredSG(Standalone generator not a plot manager)
- AdvPlots(Non square schematic generation)
- BasicPlots(Basic generator with 1 plot per chunk)
- PlotSquaredMG(Large custom terrain gen)
- IslandPlots(Islands in ocean)
- Chinese version(中国版)
- SpongeAPI version
- WorldEdit(Edit blocks within your plot)
- VoxelSniper (Ranged map editing)
- TerrainControl(Control over augmented plot worlds)
- ArmorStandTools(Add armor stands in your plot)
- BuildersUtilities (Miscellaneous features to help with building)
- PlotsMenu (GUI for plot commands)
- Umbaska (Skript addon)
- Roads can be conveniently added to new or existing worlds
- Supports larger plot sizes than pure schematic generation
- (here's the template below /plot template import bridge)
- Just use /plot download
- Cross server '/plot save', '/plot load' and '/plot schematic paste url:'
- See addons above for additional web interfaces
- Use commands or enable auto merging
- Merge plots and build with friends
- Use /plot setup
- Generate using any generator you want e.g. Normal terrain, Nether, or even TerrainControl
- Plot clusters can go anywhere, and can simply be invisible boundaries if you want.
- Default generator bundled with PlotSquared
- Percentage control over plot components and blocks
About Project
Categories
Members
Plot y versus x as lines and/or markers.
Call signatures:
The coordinates of the points or line nodes are given by x, y.
The optional parameter fmt is a convenient way for defining basicformatting like color, marker and linestyle. It's a shortcut stringnotation described in the Notes section below.
You can use Line2D
properties as keyword arguments for morecontrol on the appearance. Line properties and fmt can be mixed.The following two calls yield identical results:
When conflicting with fmt, keyword arguments take precedence.
Plotting labelled data
There's a convenient way for plotting objects with labelled data (i.e.data that can be accessed by index obj['y']
). Instead of givingthe data in x and y, you can provide the object in the dataparameter and just give the labels for x and y:
All indexable objects are supported. This could e.g. be a dict
, apandas.DataFrame
or a structured numpy array.
Plotting multiple sets of data
There are various ways to plot multiple sets of data.
The most straight forward way is just to call
plot
multiple times.Example:Alternatively, if your data is already a 2d array, you can pass itdirectly to x, y. A separate data set will be drawn for everycolumn.
Example: an array
a
where the first column represents the xvalues and the other columns are the y columns:The third way is to specify multiple sets of [x], y, [fmt]groups:
In this case, any additional keyword argument applies to alldatasets. Also this syntax cannot be combined with the dataparameter.
By default, each line is assigned a different style specified by a'style cycle'. The fmt and line property parameters are onlynecessary if you want explicit deviations from these defaults.Alternatively, you can also change the style cycle usingrcParams['axes.prop_cycle']
(default: cycler('color',['#1f77b4','#ff7f0e','#2ca02c','#d62728','#9467bd','#8c564b','#e377c2','#7f7f7f','#bcbd22','#17becf'])
).
Parameters: |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Other Parameters: |
|
See also
scatter
- XY scatter plot with markers of varying size and/or color ( sometimes also called bubble chart).
Notes
Format Strings
A format string consists of a part for color, marker and line:
Each of them is optional. If not provided, the value from the stylecycle is used. Exception: If line
is given, but no marker
,the data will be a line without markers.
Other combinations such as [color][marker][line]
are alsosupported, but note that their parsing may be ambiguous.
Markers
character | description |
---|---|
'.' | point marker |
',' | pixel marker |
'o' | circle marker |
'v' | triangle_down marker |
'^' | triangle_up marker |
'<' | triangle_left marker |
'>' | triangle_right marker |
'1' | tri_down marker |
'2' | tri_up marker |
'3' | tri_left marker |
'4' | tri_right marker |
's' | square marker |
'p' | pentagon marker |
'*' | star marker |
'h' | hexagon1 marker |
'H' | hexagon2 marker |
'+' | plus marker |
'x' | x marker |
'D' | diamond marker |
'd' | thin_diamond marker |
' ' | vline marker |
'_' | hline marker |
Line Styles
character | description |
---|---|
'-' | solid line style |
'--' | dashed line style |
'-.' | dash-dot line style |
':' | dotted line style |
Example format strings:
Colors
The supported color abbreviations are the single letter codes
character | color |
---|---|
'b' | blue |
'g' | green |
'r' | red |
'c' | cyan |
'm' | magenta |
'y' | yellow |
'k' | black |
'w' | white |
Plots Admin Interact Road
and the 'CN'
colors that index into the default property cycle.
Plotsquared Spigot
If the color is the only part of the format string, you canadditionally use any matplotlib.colors
spec, e.g. full names('green'
) or hex strings ('#008000'
).