Remove backend 3.7-deprecated API #26962 by Vishnu9535 · Pull Request #27225 · matplotlib/matplotlib · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/api/next_api_changes/removals/26962.rst
8 changes: 0 additions & 8 deletions lib/matplotlib/backends/backend_ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,9 @@
debugPS = False


@_api.deprecated("3.7")
class PsBackendHelper:
def __init__(self):
self._cached = {}


@_api.caching_module_getattr
class __getattr__:
# module-level deprecations
ps_backend_helper = _api.deprecated("3.7", obj_type="")(
property(lambda self: PsBackendHelper()))
psDefs = _api.deprecated("3.8", obj_type="")(property(lambda self: _psDefs))
Comment thread
ksunden marked this conversation as resolved.


Expand Down
6 changes: 0 additions & 6 deletions lib/matplotlib/backends/backend_webagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@
TimerAsyncio, TimerTornado)


@mpl._api.deprecated("3.7")
class ServerThread(threading.Thread):
def run(self):
tornado.ioloop.IOLoop.instance().start()


webagg_server_thread = threading.Thread(
target=lambda: tornado.ioloop.IOLoop.instance().start())

Expand Down
20 changes: 0 additions & 20 deletions src/_backend_agg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@
#include "_backend_agg.h"
#include "mplutils.h"

void BufferRegion::to_string_argb(uint8_t *buf)
{
unsigned char *pix;
unsigned char tmp;
size_t i, j;

memcpy(buf, data, (size_t) height * stride);

for (i = 0; i < (size_t)height; ++i) {
pix = buf + i * stride;
for (j = 0; j < (size_t)width; ++j) {
// Convert rgba to argb
tmp = pix[2];
pix[2] = pix[0];
pix[0] = tmp;
pix += 4;
}
}
}

RendererAgg::RendererAgg(unsigned int width, unsigned int height, double dpi)
: width(width),
height(height),
Expand Down
2 changes: 0 additions & 2 deletions src/_backend_agg.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ class BufferRegion
return stride;
}

void to_string_argb(uint8_t *buf);

private:
agg::int8u *data;
agg::rect_i rect;
Expand Down
36 changes: 0 additions & 36 deletions src/_backend_agg_wrapper.cpp